-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Take translation out of the build process (#443)
<!-- Please ensure the PR fulfills the following requirements! --> <!-- If this is your first PR, make sure to add your details to the AUTHORS.rst! --> ### Pull Request Checklist: - [x] This PR addresses an already opened issue (for bug fixes / features) - This PR fixes #342 - [x] (If applicable) Documentation has been added / updated (for bug fixes / features). - [ ] (If applicable) Tests have been added. - [x] This PR does not seem to break the templates. - [x] CHANGELOG.rst has been updated (with summary of main changes). - [x] Link to issue (:issue:`number`) and pull request (:pull:`number`) has been added. ### What kind of change does this PR introduce? * Compiled french translations are now kept within the repo and package. No need to `make translate` on each clone of the source. * A new Makefile entry `make checkfrench` ensures that the french catalog is up-to-date AND that the compiled version is older than the catalog. See notes. * The linting CI runs this `checkfrench` so a PR adding translatable messages cannot be merged if the french translation is not given. ### Does this PR introduce a breaking change? No. The only change is for developers. `make translate` needs only to be run if a translatable message was added, after `make findfrench` was run and the "xscen.po" file updated with the french translation. So, _exactly_ what the contributing guide says to do. ### Other information: The date check on `mo` files is weak : a catalog file could have a modified time changed even tough no real change was done. And (in theory) a compiled file could have a recent date even though it is not in sync wit the catalog. However, binary comparion of two `mo` files taken from the same catalog fails. My guess is that the compilation time is included in the mo file, and I didn't want to dig deeper. We don't update the translation catalogs often, so this should be enough. @Zeitsperre This removes the `setup.py` stuff. Feel free to change the build system if you feel like doing so!
- Loading branch information
Showing
19 changed files
with
35 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,32 @@ | ||
# French translations for xscen. | ||
# Copyright (C) 2023 ORGANIZATION | ||
# This file is distributed under the same license as the xscen project. | ||
# Équipe Xscen <[email protected]>, 2023. | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: xscen 0.6.18b0\n" | ||
"Report-Msgid-Bugs-To: [email protected]\n" | ||
"POT-Creation-Date: 2023-09-29 11:45-0400\n" | ||
"PO-Revision-Date: 2023-08-15 16:48-0400\n" | ||
"Last-Translator: Pascal Bourgault <[email protected]>\n" | ||
"Language: fr\n" | ||
"Language-Team: fr <[email protected]>\n" | ||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Generated-By: Babel 2.12.1\n" | ||
|
||
#: xscen/aggregate.py:185 | ||
msgid "{window}-year mean of {attr}." | ||
#: src/xscen/aggregate.py:435 | ||
#, fuzzy | ||
msgid "{window}-year climatological {operation} of {attr}." | ||
msgstr "Moyenne {window} ans de {attr}." | ||
|
||
#: xscen/aggregate.py:319 | ||
#: src/xscen/aggregate.py:649 | ||
msgid "{attr1}: {kind} delta compared to {refhoriz}." | ||
msgstr "{attr1}: Delta {kind} comparé à {refhoriz}." | ||
|
||
#: xscen/diagnostics.py:501 | ||
#: src/xscen/diagnostics.py:522 | ||
msgid "Ranking of measure performance" | ||
msgstr "Classement de performance de la mesure" | ||
|
||
#: xscen/diagnostics.py:560 | ||
#: src/xscen/diagnostics.py:581 | ||
msgid "Fraction of improved grid cells" | ||
msgstr "Fraction de points de grille améliorés" | ||
|
||
#: xscen/io.py:650 | ||
#: src/xscen/io.py:761 src/xscen/io.py:769 | ||
msgid "Variable" | ||
msgstr "Variable" | ||
|
||
#: xscen/io.py:650 | ||
#: src/xscen/io.py:762 | ||
msgid "Description" | ||
msgstr "Description" | ||
|
||
#: xscen/io.py:650 | ||
#: src/xscen/io.py:765 | ||
msgid "Units" | ||
msgstr "Unités" | ||
|
||
#: xscen/io.py:654 | ||
#: src/xscen/io.py:770 | ||
msgid "Content" | ||
msgstr "Contenu" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters