Skip to content

Use gettext for recurring phrases!!!!! #684

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 71 commits into
base: lektor
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
331ee2b
switch to gettext
johnzhou721 Jun 28, 2025
86d0e9f
verify that all |trans statements without bag specification are replaced
johnzhou721 Jun 28, 2025
af41d4f
translate most chinese strings
johnzhou721 Jun 28, 2025
d9499db
more context
johnzhou721 Jun 28, 2025
13540dd
Update templates/project.html
johnzhou721 Jun 28, 2025
e6b1e27
start filling in arabic translations, also correct badge macro
johnzhou721 Jun 29, 2025
2936cf9
work done today... still no fix for missing strings
johnzhou721 Jun 29, 2025
e6ba812
workaround a translaiton bug
johnzhou721 Jun 29, 2025
88d637a
restore pluralization
johnzhou721 Jun 29, 2025
42a8f3c
update the plugin a bit
johnzhou721 Jun 29, 2025
5dc5542
add plural forms
johnzhou721 Jun 30, 2025
69ac875
plural forms (filled in missing ones, need the sprinting mentor part)
johnzhou721 Jun 30, 2025
07ed969
add comment
johnzhou721 Jun 30, 2025
84e158c
use an older gettext on a gnu/linux vm
johnzhou721 Jun 30, 2025
14ab6aa
add all arabic strings;
johnzhou721 Jun 30, 2025
337817e
add more arabic translations... but don't know why they aren't showign
johnzhou721 Jun 30, 2025
f3ddfd5
fuzzy out strings whose last git blame is not a translation commit
johnzhou721 Jun 30, 2025
78395ff
clean out unused plugin functions, fix bug w/ languages
johnzhou721 Jun 30, 2025
258f9cd
fill in portugese translations
johnzhou721 Jun 30, 2025
499d8fc
extract title labels, bugfix to allow opening in GNOME Translation Ed…
johnzhou721 Jun 30, 2025
13e9255
revmoe a test file, proper header to arabic version, fix some bugs, u…
johnzhou721 Jun 30, 2025
1ee8352
Add some zh_TW translations.
johnzhou721 Jun 30, 2025
1c02080
arabic: fuzzy everything
johnzhou721 Jun 30, 2025
3ab4928
portugese: missing translations filled in, fuzzy everything, correct …
johnzhou721 Jun 30, 2025
4e2c8f3
update zh_CN a bit
johnzhou721 Jun 30, 2025
0e189dc
es translation copy paste
johnzhou721 Jun 30, 2025
a5b3674
Update templates/event.html
johnzhou721 Jun 30, 2025
53be59d
rebuild
johnzhou721 Jun 30, 2025
b3e8e89
Apply suggestions from code review
johnzhou721 Jul 1, 2025
78ff267
¡Hurra! (this commit msg is translated w/ google)
johnzhou721 Jul 1, 2025
7c6a6a6
fuzzy fixup in arabic, entre french translations
johnzhou721 Jul 1, 2025
008b007
Apply suggestions from code review
johnzhou721 Jul 1, 2025
e982c82
start putting in italian translations
johnzhou721 Jul 1, 2025
b8608bb
put in italiian translations
johnzhou721 Jul 1, 2025
897b54e
fill in rest of translations, fuzzy appropriate navigation labels
johnzhou721 Jul 1, 2025
d6c7fcc
bugfix on labels to translate the colon, remove databags
johnzhou721 Jul 1, 2025
299d10d
ban plurals in auto translate
johnzhou721 Jul 1, 2025
2490f90
Update i18n/contents+ar.po
johnzhou721 Jul 2, 2025
1a7b793
Apply suggestions from code review
johnzhou721 Jul 2, 2025
612ae21
Update i18n/contents+pt.po
johnzhou721 Jul 2, 2025
f0fa78d
Update i18n/contents+es.po
johnzhou721 Jul 2, 2025
9139c13
Update i18n/contents+it.po
johnzhou721 Jul 2, 2025
a10dfca
Update i18n/contents+pl.po
johnzhou721 Jul 2, 2025
13da75b
Update i18n/contents+zh_CN.po
johnzhou721 Jul 2, 2025
4033dae
workign copy
johnzhou721 Jul 2, 2025
59ffdb7
why did i forget to reinstall plugin... look at this huge diff :(
johnzhou721 Jul 2, 2025
8341403
fill labels
johnzhou721 Jul 2, 2025
8b2bcdc
add german
johnzhou721 Jul 2, 2025
1c7ee08
finish off this PR
johnzhou721 Jul 2, 2025
deeb7cb
fixups
johnzhou721 Jul 2, 2025
5c41130
Update i18n/contents+fr.po
johnzhou721 Jul 3, 2025
d8f0054
Update i18n/contents+pt.po
johnzhou721 Jul 3, 2025
d68c101
Update i18n/contents+fr.po
johnzhou721 Jul 3, 2025
672a326
rebuild site
johnzhou721 Jul 3, 2025
1eaf59c
Merge remote-tracking branch 'origin/lektor' into jinjai18n
johnzhou721 Jul 3, 2025
6c94a6d
reformat
johnzhou721 Jul 3, 2025
1c71bce
persian basics from #516
johnzhou721 Jul 3, 2025
962af73
Update i18n/contents+fa.po
johnzhou721 Jul 3, 2025
bafc25e
Update i18n/contents+fa.po
johnzhou721 Jul 3, 2025
9e9e1fd
Update i18n/contents+fa.po
johnzhou721 Jul 3, 2025
4052723
Update i18n/contents+fa.po
johnzhou721 Jul 3, 2025
b7c3fcd
Merge remote-tracking branch 'upstream/lektor' into jinjai18n
johnzhou721 Jul 4, 2025
8f316f2
Merge remote-tracking branch 'upstream/lektor' into jinjai18n
johnzhou721 Jul 4, 2025
79edb56
Merge remote-tracking branch 'upstream' into jinjai18n
johnzhou721 Jul 5, 2025
2ae5660
Update packages/lektor_beeware_plugin/pyproject.toml
johnzhou721 Jul 5, 2025
a21b22d
Remove workaround
johnzhou721 Jul 8, 2025
1324d11
fix a bug, rebuild to reformat
johnzhou721 Jul 8, 2025
639c7ad
Merge remote-tracking branch 'upstream/lektor' into jinjai18n
johnzhou721 Jul 8, 2025
74239ef
Merge remote-tracking branch 'upstream/lektor' into jinjai18n
johnzhou721 Jul 8, 2025
86eccb3
linebreak using my gettext version conventions to prvent further big …
johnzhou721 Jul 9, 2025
08ecfb0
Merge remote-tracking branch 'upstream/lektor' into jinjai18n, msgcat…
johnzhou721 Jul 9, 2025
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: 1 addition & 1 deletion BeeWare.lektorproject
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ locale = fa_IR
lektor-github-repos = 0.1.1
lektor-gravatar = 0.1.3
lektor-markdown-admonition = 0.3.1
git+https://github.com/beeware/lektor-i18n-plugin@v0.5.4 =
../lektor-i18n-plugin =
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need to replace with new version after beeware/lektor-i18n-plugin#6 gets merged. That is just for extra safety, seem to work fine without it but you never know when the internal impls of any of those programs change...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

../ is my local checkout I used to update the pos


[servers.ghpages]
target = ghpages://beeware/beeware.github.io?cname=beeware.org
Expand Down
2 changes: 2 additions & 0 deletions babel.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
[jinja2: **/templates/**.html]
encoding = utf-8
trimmed = True
Copy link
Contributor Author

Choose a reason for hiding this comment

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

extensions = jinja2.ext.do
Loading