From 704de14fc750bf245b6ce58fd2ca0d7c115ac2b7 Mon Sep 17 00:00:00 2001 From: Jan Kuparinen Date: Jun 21 2021 15:24:16 +0000 Subject: [PATCH 1/2] quick instruction on how to update translation files Signed-off-by: Jan Kuparinen --- diff --git a/doc/translations.rst b/doc/translations.rst new file mode 100644 index 0000000..9a69721 --- /dev/null +++ b/doc/translations.rst @@ -0,0 +1,24 @@ +Run following command in the same location where babel.cfg is located + +extract translatable strings from fedocal directory +--------------- + +pybabel extract -F babel.cfg -k _l -o messages.pot fedocal + + +Create new language translation, if it does not exist (here adding finnish) +--------------- + +pybabel init -i messages.pot -d fedocal/translations -l fi + + +Update existing translation strings for (any) languages +--------------- + +pybabel update -i messages.pot -d fedocal/translations + + +Combile existing translations (make the file used by the program itself) +--------------- + +pybabel compile -d fedocal/translations From 097f7677544bf24572200e75359214f5f7f662bc Mon Sep 17 00:00:00 2001 From: Jan Kuparinen Date: Jun 21 2021 15:24:16 +0000 Subject: [PATCH 2/2] quick instruction on how to update translation files Signed-off-by: Jan Kuparinen --- diff --git a/doc/translations.rst b/doc/translations.rst index 9a69721..35c698b 100644 --- a/doc/translations.rst +++ b/doc/translations.rst @@ -6,7 +6,7 @@ extract translatable strings from fedocal directory pybabel extract -F babel.cfg -k _l -o messages.pot fedocal -Create new language translation, if it does not exist (here adding finnish) +Create new language translation, if it does not exist (here adding Finnish as an example) --------------- pybabel init -i messages.pot -d fedocal/translations -l fi @@ -18,7 +18,7 @@ Update existing translation strings for (any) languages pybabel update -i messages.pot -d fedocal/translations -Combile existing translations (make the file used by the program itself) +Compile existing translations (make the file used by the program itself) --------------- pybabel compile -d fedocal/translations