Huge update - lots of mods:
areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs,
coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores,
pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes,
vines, worldedit, xban2, maybe some others I didn't think about ;-)
2017-01-31 19:39:31 -05:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
# To create a new translation:
|
|
|
|
# msginit --locale=ll_CC -o locale/ll_CC.po -i locale/template.pot
|
|
|
|
|
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")/..";
|
|
|
|
|
|
|
|
# Extract translatable strings.
|
|
|
|
xgettext --from-code=UTF-8 \
|
updated several mods
biome_lib, boost cart, homedecor modpack, plantlife modpack, cottages,
currency, farming redo, gloopblocks, ilights, moreores, moretrees,
pipeworks, plasticbox, replacer, signs_lib, streets, travelnet, unified
dyes, and vines, and maybe one or two others that I didn't see in the
list. :-)
I fixed the misc_overrides component (it broke when I switched over to
farming redo a while back), and also I've added the classic peaceful_npc
mod back into the modpack, since it seems to work now.
Be sure when you run a world for the first time after this update, that
you "Configure" the world, *disable* all of Dreambuilder Modpack, then
re-enable the whole thing. If you don't, a few mods will fail to load
due to recent changes in their dependencies.
2017-08-12 20:37:50 -04:00
|
|
|
--language=Lua \
|
|
|
|
--sort-by-file \
|
Huge update - lots of mods:
areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs,
coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores,
pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes,
vines, worldedit, xban2, maybe some others I didn't think about ;-)
2017-01-31 19:39:31 -05:00
|
|
|
--keyword=S \
|
|
|
|
--keyword=NS:1,2 \
|
|
|
|
--keyword=N_ \
|
|
|
|
--add-comments='Translators:' \
|
|
|
|
--add-location=file \
|
|
|
|
-o locale/template.pot \
|
|
|
|
$(find .. -name '*.lua')
|
|
|
|
|
|
|
|
# Update translations.
|
|
|
|
find locale -name '*.po' | while read -r file; do
|
|
|
|
echo $file
|
|
|
|
msgmerge --update $file locale/template.pot;
|
|
|
|
done
|