@@ -104,14 +104,14 @@ In particular, the way to know that the `pt` language should be disambiguated as
104104So, if we pick ` es ` (Spanish) as our example language code, to add a translation for it to both built-in themes, run these commands:
105105
106106``` bash
107- pybabel init --input-file properdocs/themes/ mkdocs/messages.pot --output-dir properdocs/themes/ mkdocs/locales -l es
108- pybabel init --input-file properdocs/themes/ readthedocs/messages.pot --output-dir properdocs/themes/ readthedocs/locales -l es
107+ pybabel init --input-file packages/properdocs-theme- mkdocs/properdocs_theme_mkdocs/ messages.pot --output-dir packages/properdocs-theme- mkdocs/properdocs_theme_mkdocs /locales -l es
108+ pybabel init --input-file packages/properdocs-theme- readthedocs/properdocs_theme_readthedocs/ messages.pot --output-dir packages/properdocs-theme- readthedocs/properdocs_theme_readthedocs /locales -l es
109109```
110110
111111The above command will create a file structure as follows:
112112
113113``` text
114- properdocs/themes/ mkdocs/locales
114+ packages/properdocs-theme- mkdocs/properdocs_theme_mkdocs /locales
115115├── es
116116│ └── LC_MESSAGES
117117│ └── messages.po
141141To update the ` fr ` translation catalog of both built-in themes, use the following commands:
142142
143143``` bash
144- pybabel update --ignore-obsolete --input-file properdocs/themes/ mkdocs/messages.pot --output-dir properdocs/themes/ mkdocs/locales -l fr
145- pybabel update --ignore-obsolete --input-file properdocs/themes/ readthedocs/messages.pot --output-dir properdocs/themes/ readthedocs/locales -l fr
144+ pybabel update --ignore-obsolete --input-file packages/properdocs-theme- mkdocs/properdocs_theme_mkdocs/ messages.pot --output-dir packages/properdocs-theme- mkdocs/properdocs_theme_mkdocs /locales -l fr
145+ pybabel update --ignore-obsolete --input-file packages/properdocs-theme- readthedocs/properdocs_theme_readthedocs/ messages.pot --output-dir packages/properdocs-theme- readthedocs/properdocs_theme_readthedocs /locales -l fr
146146```
147147
148148You can now move on to the next step and [ add a translation] for every updated
@@ -174,14 +174,14 @@ files of your theme into `messages.mo` files. The following commands will compil
174174the ` es ` translation for both built-in themes:
175175
176176``` bash
177- pybabel compile --statistics --directory properdocs/themes/ mkdocs/locales -l es
178- pybabel compile --statistics --directory properdocs/themes/ readthedocs/locales -l es
177+ pybabel compile --statistics --directory packages/properdocs-theme- mkdocs/properdocs_theme_mkdocs /locales -l es
178+ pybabel compile --statistics --directory packages/properdocs-theme- readthedocs/properdocs_theme_readthedocs /locales -l es
179179```
180180
181181The above command results in the following file structure:
182182
183183``` text
184- properdocs/themes/ mkdocs/locales
184+ packages/properdocs-theme- mkdocs/properdocs_theme_mkdocs /locales
185185├── es
186186│ └── LC_MESSAGES
187187│ ├── messages.mo
0 commit comments