Skip to content

Commit

Permalink
Put asterism translations into separate msgctxt
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtribick committed Nov 10, 2024
1 parent c3104d9 commit 130f606
Show file tree
Hide file tree
Showing 31 changed files with 33,444 additions and 29,183 deletions.
3 changes: 2 additions & 1 deletion po/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ $(pot_file): $(pot_file)-update

$(pot_file)-update: data.cpp
xgettext --keyword=_ --keyword=i18n \
--keyword=C_:1c,2 --keyword=i18nc:1c,2 \
--sort-by-file --qt --add-comments \
--default-domain=$(domain) --package-name=celestia --package-version=1.7.0 \
[email protected] \
Expand All @@ -20,7 +21,7 @@ $(pot_file)-update: data.cpp
data.cpp

data.cpp: ../data/asterisms.dat ../data/solarsys.ssc ../data/earth_locs.ssc ../data/world-capitals.ssc ../data/dwarfplanets.ssc ../data/minormoons.ssc ../data/well-known-starnames.txt ../data/well-known-dsonames.txt
egrep '^\"' ../data/asterisms.dat | awk -F'\"' '{ print "_(\"" $$2 "\");" }' > data.cpp
egrep '^\"' ../data/asterisms.dat | awk -F'\"' '{ print "C_(\"asterism\", \"" $$2 "\");" }' > data.cpp
egrep '^(\"|ReferencePoint)' ../data/solarsys.ssc | awk -F'\"|:' '{ print "_(\"" $$2 "\");" }' >> data.cpp
egrep '^(\"|ReferencePoint)' ../data/dwarfplanets.ssc | awk -F'\"|:' '{ print "_(\"" $$2 "\");" }' >> data.cpp
egrep '^(\"|ReferencePoint)' ../data/minormoons.ssc | awk -F'\"|:' '{ print "_(\"" $$2 "\");" }' >> data.cpp
Expand Down
Loading

0 comments on commit 130f606

Please sign in to comment.