aboutsummaryrefslogtreecommitdiff
path: root/src/staticobject.h
Commit message (Expand)AuthorAge
* Modernize source code: last part (#6285)Loïc Blot2017-08-20
* C++ modernize: Pragma once (#6264)Loïc Blot2017-08-17
* Cpp11 initializers: last src root changeset (#6022)Loïc Blot2017-06-21
* Use warningstream for log messages with WARNINGShadowNinja2015-10-14
* For usages of assert() that are meant to persist in Release builds (when NDEB...Craig Robbins2015-03-07
* Use std::vector instead of std::list in StaticObjectList and MutexedMap::getV...Loic Blot2015-03-04
* Fix object duplication bug (at least in the most reproducible UFO case)Perttu Ahola2013-10-17
* Migrate to STL containers/algorithms.Ilya Zhuravlev2013-03-11
* Update Copyright YearsSfan52013-02-24
* Change Minetest-c55 to MinetestPilzAdam2013-02-24
* Move util/serialize.h out from staticobject.h for smaller header dependenciesPerttu Ahola2012-11-26
* Optimize headersPerttu Ahola2012-06-17
* Properly and efficiently use split utility headersPerttu Ahola2012-06-17
* Switch the license to be LGPLv2/later, with small parts still remaining as GP...Perttu Ahola2012-06-05
* added missing filePerttu Ahola2011-04-10
ss="hl kwb">cd po || abort "couldn't change directory to po!" # This assumes that we won't have dirnames with space, which is # the case for language codes, which are the only subdirs we expect to # find in po/ anyway. If you put anything else there, you need to suffer # the consequences of your actions, so we don't do sanity checks langs="" for lang in * ; do if test ! -d $lang; then continue fi langs="$langs $lang" done # go back cd .. # First thing first, update the .pot template. We place it in the po/ # directory at the top level. You a recent enough xgettext that supports # --package-name potfile=po/minetest.pot xgettext --package-name=minetest \ --add-comments='~' \ --sort-by-file \ --add-location=file \ --keyword=N_ \ --keyword=wgettext \ --keyword=fgettext \ --keyword=fgettext_ne \ --keyword=strgettext \ --keyword=wstrgettext \ --keyword=showTranslatedStatusText \ --output $potfile \ --from-code=utf-8 \ `find src/ -name '*.cpp' -o -name '*.h'` \ `find builtin/ -name '*.lua'` # Now iterate on all languages and create the po file if missing, or update it # if it exists already for lang in $langs ; do # note the missing quotes around $langs pofile=po/$lang/minetest.po if test -e $pofile; then echo "[$lang]: updating strings" msgmerge --update --sort-by-file $pofile $potfile else # This will ask for the translator identity echo "[$lang]: NEW strings" msginit --locale=$lang --output-file=$pofile --input=$potfile fi done