freeipa/po
Alexander Bokovoy d64db12608 translations: regenerate translations after changes in help message in sudorule
A change to replace -h and -p options in OpenLDAP command line utilities
causes also an update in the help text in sudorule plugin. This, sadly,
makes existing translations of that text not valid anymore. However, we
have to change the text as OpenLDAP 2.6+ will make the command
referenced in the help text incorrect.

The change in OpenLDAP 2.6+ implements deprecation that was announced by
OpenLDAP project around 20 years ago, so all existing tools support -H
option.

See also: https://bugs.openldap.org/show_bug.cgi?id=8618

Related: https://pagure.io/freeipa/issue/9106

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
2022-02-07 10:35:27 +02:00
..
bn_IN.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
boldquot.sed Build: use standard infrastructure for translations 2016-11-22 16:14:50 +01:00
ca.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
contributing_translators.txt Build: move translations from install/po/ to top-level po/ 2016-10-24 13:30:12 +02:00
cs.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
de.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
en_GB.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
en@boldquot.header Build: use standard infrastructure for translations 2016-11-22 16:14:50 +01:00
en@quot.header Build: use standard infrastructure for translations 2016-11-22 16:14:50 +01:00
es.po translations: regenerate translations after changes in help message in sudorule 2022-02-07 10:35:27 +02:00
eu.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
fi.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
fr.po translations: regenerate translations after changes in help message in sudorule 2022-02-07 10:35:27 +02:00
hi.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
hu.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
id.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
insert-header.sin Build: use standard infrastructure for translations 2016-11-22 16:14:50 +01:00
ipa.pot translations: regenerate translations after changes in help message in sudorule 2022-02-07 10:35:27 +02:00
ja.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
kn.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
LINGUAS Update translations to FreeIPA master state 2021-06-02 11:30:28 +03:00
Makefile.hack.in make: serialize strip-po / strip-pot 2020-06-05 09:34:46 +02:00
Makevars Update translation infrastructure 2020-03-24 13:40:06 +01:00
mr.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
nl.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
pa.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
pl.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
pt_BR.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
pt.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
quot.sed Build: use standard infrastructure for translations 2016-11-22 16:14:50 +01:00
README fix minor spelling mistakes 2017-05-19 09:52:46 +02:00
remove-potcdate.sin Build: use standard infrastructure for translations 2016-11-22 16:14:50 +01:00
ru.po translations: regenerate translations after changes in help message in sudorule 2022-02-07 10:35:27 +02:00
si.po translations: regenerate translations after changes in help message in sudorule 2022-02-07 10:35:27 +02:00
sk.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
tg.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
tr.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00
uk.po translations: regenerate translations after changes in help message in sudorule 2022-02-07 10:35:27 +02:00
zh_CN.po Update translations to FreeIPA master state 2021-11-25 18:58:57 +01:00

Q: I've added a new source file, how do I make sure it's strings get translated?

A: Run config.status in top-level directory and then run "make ipa.pot-update".

Q: How do I pick up new strings to translate from the source files after the
   source have been modified?

A: make ipa.pot-update
   This regenerates the pot template file by scanning all the source files.
   Then the new strings are merged into each .po file from the new pot file.

Q: How do I just regenerate the pot template file without regenerating all the
   .po files?

A: make ipa.pot-update

Q: How do I add a new language for translation?

A: Edit the LINGUAS file and add the new language. Then run "make create-po".
   This will generate a new .po file for each language which doesn't have one
   yet. Be sure to add the new .po file(s) to the source code repository.  For
   certain languages, you may have to edit the Plurals line.  See:
   http://www.gnu.org/software/hello/manual/gettext/Plural-forms.html
   However, if this line is wrong, it is often an indicator that the locale
   value is incorrect.  For example, using 'jp' for Japanese instead of 'ja'
   will result in an invalid Plurals line.

Q: What files must be under source code control?

A: The files Makefile.in, LINGUAS control the build, they must be in the SCM.
   The *.pot file contains list of translatable strings and can be re-generated
   at any time from program sources, so it does not need to be in SCM.
   *.po files contain snapshot of translated strings so they must be in SCM
   for the case where translation service we use goes down.

   Be careful, .po files may be automatically updated when the source files
   change (or the .pot changes, usually the .pot file changes only as a result
   of rescanning the source files). This mean a .po file might be automatically
   updated while a file from translation service is being downloaded.

   If there is a conflict, you should generate new pot file,
   upload it do the translation service, and re-download the po files.

Q: Which files are automatically generated and thus do not need to be in SCM?

A: *.pot files are automatically generated from program sources.
   The *.gmo files are automatically generated on demand from their
   corresponding .po file.

Q: What role does the .pot file play?

A: The .pot file is called a template file. It is generated by scanning all the
   source files (e.g. *.py *.c *.h) in the project using xgettext. xgettext
   locates every translatable string (e.g. strings marked with _()) and adds
   that string along with metadata about it's location to the .pot file. Thus
   the .pot file is a collection of every translatable string in the project.
   If you edit a source file and add a translatable string you will have to
   regenerate the .pot file in order to pick up the new string.
   This template file needs to be uploaded from time to time to translation
   service so translators can translate new and updated strings incrementally.

Q: What is the relationship between a .po file and the .pot file?

A: A .po file contains the translations for particular language. It derives
   from the .pot file. When the .pot file is updated with new strings
   to translate each .po will merge the new strings in.
   Previously the .po file was where translators worked providing translations
   for their language.
   Today the work is done inside translation service Zanata so the .po files
   are kept in SCM just for the case of failure in the translation service.

Q: What is the translation workflow?
   Let's use an example for French, it's .po file will be fr.po.

   1)  Developer creates main.c with one translatable sting _("Begin").

   2)  Maintainer produces the .pot file by running make ipa.pot-update.

   3)  .pot file contains one msgid, "Begin".

   4)  Maintainer uploads .pot file to Zanata translation service:
       $ zanata-cli push
       (all the parameters are taken from zanata.xml file)

   5)  Translator uses Zanata service to provide the French translation
       of "Begin".

   5)  Maintainer downloads fr.po as generated by Zanata service,
       it also contains one msgid, "Begin".
       $ zanata-cli pull

   6)  Maintainer strips untranslated strings from .po files
       to make diffs smaller:
       $ make strip-po

   7)  Maintainer commits new .po files to Git.

Q: What are .gmo files?

A: .gmo files are the content of a .po file but in "machine" format for fast
   run time access (mo = Machine Object, po = Portable Object). .mo files are
   what gets installed along with the package. Think of a .po as a source file
   which is compiled into an object file for run time use.

Credits:
- GNU project
- John Dennis <jdennis@redhat.com> for his work on the original system