Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions babel.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[jinja2: **/templates/**.html]
encoding = utf-8
5 changes: 5 additions & 0 deletions configs/i18n.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
content = en
translations = es, fr
i18npath = i18n
translate_paragraphwise = True
url_prefix = https://beeware.org/
4 changes: 3 additions & 1 deletion flowblocks/text-block.ini
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presumably flowblocks/button-block.ini also has some translation opportunities in the button label?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, right. Yes most likely. As I said, I'm not as familiar with the flowblocks. I wasn't thinking about it.

Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ button_label = Rich Text
label = Title
description = Markdown
type = markdown
translate = True

[fields.text]
label = Text
description = Markdown
type = markdown
translate = True

[fields.image]
label = Image
label = Image
type = select
source = record.attachments.images
width = 1/4
Expand Down
3 changes: 3 additions & 0 deletions models/blog-post.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ hidden = yes
label = Title
type = string
size = large
translate = True

[fields.author]
label = Author
type = string
width = 1/2
translate = True
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the author name need to be translated?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. I'm not sure why I flagged it. Will remove.


[fields.mastodon_handle]
label = Mastodon Handle
Expand All @@ -34,3 +36,4 @@ width = 1/4
label = Body
description = Markdown
type = markdown
translate = True
3 changes: 3 additions & 0 deletions models/blog.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ per_page = 10
[fields.title]
label = Title
type = string
translate = True

[fields.summary]
label = Summary
type = string
translate = True

[fields.gutter_top]
label = Gutter top
description = Markdown
type = markdown
translate = True
3 changes: 3 additions & 0 deletions models/event.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ hidden = no
label = Title
type = string
size = large
translate = True

[fields.event_type]
label = Event Type
Expand Down Expand Up @@ -40,8 +41,10 @@ width = 1/4
[fields.talk_title]
label = Talk Title
type = string
translate = True

[fields.description]
label = Description
description = Markdown
type = markdown
translate = True
3 changes: 3 additions & 0 deletions models/events.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ hidden = yes
[fields.title]
label = Title
type = string
translate = True

[fields.summary]
label = Summary
type = string
translate = True

[fields.gutter]
label = Gutter
description = Markdown
type = markdown
translate = True

[children]
model = event
Expand Down
5 changes: 5 additions & 0 deletions models/home.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@ order_by = sort_key
[fields.title]
label = Title
type = string
translate = True

[fields.summary]
label = Summary
type = string
translate = True

[fields.description]
label = Description
description = Markdown
type = markdown
translate = True

[fields.header]
label = Header blocks
Expand All @@ -30,11 +33,13 @@ type = flow
label = Gutter top
description = Markdown
type = markdown
translate = True

[fields.gutter_bottom]
label = Gutter bottom
description = Markdown
type = markdown
translate = True

[fields.incomplete]
label = Is this page incomplete?
Expand Down
3 changes: 3 additions & 0 deletions models/member.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ width = 1/4
label = URL
type = url
width = 1/2

[fields.email]
label = email
type = string
Expand All @@ -54,8 +55,10 @@ width = 1/4
label = Description
description = Markdown
type = markdown
translate = True

[fields.contribution]
label = Contribution
description = Markdown
type = markdown
translate = True
3 changes: 3 additions & 0 deletions models/members.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,18 @@ per_page = 10
[fields.title]
label = Title
type = string
translate = True

[fields.summary]
label = Summary
type = string
translate = True

[fields.body]
label = Body
description = Markdown
type = markdown
translate = True

[fields.sort_key]
label = Sort order
Expand Down
4 changes: 4 additions & 0 deletions models/page.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,24 @@ order_by = sort_key
[fields.title]
label = Title
type = string
translate = True

[fields.summary]
label = Summary
type = string
translate = True

[fields.body]
label = Body
description = Markdown
type = markdown
translate = True

[fields.gutter]
label = Gutter
description = Markdown
type = markdown
translate = True

[fields.incomplete]
label = Is this page incomplete?
Expand Down
4 changes: 4 additions & 0 deletions models/project-type.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ order_by = sort_key, name
label = Title
type = string
width = 1/4
translate = True

[fields.featured]
label = Feature this project type?
Expand All @@ -25,12 +26,15 @@ width = 1/4
[fields.short_description]
label = Short description
type = string
translate = True

[fields.project_page_description]
label = Project page description
type = string
translate = True

[fields.gutter]
label = Gutter
description = Markdown
type = markdown
translate = True
3 changes: 3 additions & 0 deletions models/project.ini
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,19 @@ type = boolean
label = Short description
description = Markdown
type = markdown
translate = True

[fields.description]
label = Description
description = Markdown
type = markdown
translate = True

[fields.pun]
label = Pun Reasoning
description = Markdown
type = markdown
translate = True

[fields.help_required]
Comment thread
freakboy3742 marked this conversation as resolved.
label = Help required
Expand Down
2 changes: 2 additions & 0 deletions models/resource.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ label = Title
type = string
size = large
width = 1/2
translate = True

[fields.author]
label = Author
Expand Down Expand Up @@ -35,6 +36,7 @@ width = 1/4
label = Description
description = Markdown
type = markdown
translate = True

[fields.url]
label = URL
Expand Down
5 changes: 5 additions & 0 deletions models/resources.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,30 @@ per_page = 10
label = Title
type = string
size = large
translate = True

[fields.summary]
label = Summary
type = string
translate = True

[fields.gutter_top]
label = Gutter top
description = Markdown
type = markdown
translate = True

[fields.gutter]
label = Gutter
description = Markdown
type = markdown
translate = True

[fields.gutter_bottom]
label = Gutter bottom
description = Markdown
type = markdown
translate = True

[fields.sort_key]
label = Sort order
Expand Down
2 changes: 2 additions & 0 deletions models/team-member.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ size = large
label = Summary
type = string
size = large
translate = True

[fields.twitter_handle]
label = Twitter Handle
Expand Down Expand Up @@ -50,6 +51,7 @@ type = date
label = Description
description = Markdown
type = markdown
translate = True

[fields.superpower]
label = Superpowers
Expand Down
3 changes: 3 additions & 0 deletions models/team.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,18 @@ per_page = 10
[fields.title]
label = Title
type = string
translate = True

[fields.summary]
label = Summary
type = string
translate = True

[fields.body]
label = Body
description = Markdown
type = markdown
translate = True

[fields.sort_key]
label = Sort order
Expand Down
Loading