Skip to content

Added translations and python script to translate them using Deepl API#23

Draft
diop7 wants to merge 3 commits intomainfrom
DocsTranslation-Dev
Draft

Added translations and python script to translate them using Deepl API#23
diop7 wants to merge 3 commits intomainfrom
DocsTranslation-Dev

Conversation

@diop7
Copy link
Contributor

@diop7 diop7 commented Feb 14, 2024

SUMMARY

Implements necessary language changes.
Resolves numere-org/NumeRe#[ISSUE-ID]

Reviewers: @numere-org/maintainers

DOCUMENTATION

  • Documentation articles:
    • corresponding documentation articles updated
    • new documentation articles created
    • not needed
  • Language files:
    • corresponding language files updated
    • not needed

@diop7 diop7 requested a review from numeredev February 14, 2024 10:18
@diop7
Copy link
Contributor Author

diop7 commented Feb 14, 2024

@numeredev Does this make sense in this way (especially the python script). Probably it is better to merge in another branch than directly in main.

PARSERFUNCS_LISTFUNC_FUNC_TEXTPARSE_[STRING]= textparse(sToParse,sPattern,nPos1=1,nPos2=sToParse.len) {ARG} - Décompose sToParse en différents blocs de différents types de variables à l'aide du schéma sPattern. Les types de variables sont définis par les identificateurs suivants dans la chaîne de caractères sPattern:%%ITEMIZE%%%s : chaîne de caractères%%ITEMIZE%%%f : nombre réel ou complexe%ITEMIZE%%%t : valeur de date et d'heure en UTC (dans les formats acceptés par les tables)%%ITEMIZE%%%l : valeur logique%%ITEMIZE%%%L : Valeur numérique formatée en LaTeX%%ITEMIZE%%h : valeur hexadécimale%%ITEMIZE%%o : valeur octale%%ITEMIZE%%b : valeur binaire%%ITEMIZE%%a : valeur arbitraire, est ignorée et sert à sauter une partie du texte%%ITEMIZE_END%%Exemple pour sPattern : "TIME=%t MSG=%s VAL=%f". Les paramètres nPos1 et nPos2 sont facultatifs et indiquent les points de départ et de fin
PARSERFUNCS_LISTFUNC_FUNC_TEXT_[DRAW]= text(P,P,TEXT,STYLE) {} - Imprime le texte TEXT à l'emplacement P. L'alignement et la couleur peuvent être influencés par STYLE, l'alignement et la forme devant être séparés de la couleur par :. Les couleurs du texte sont déterminées comme toutes les autres couleurs selon "help colors" ; l'alignement par LRC (Left-Right-Centered) et la forme par rib (roman-italic-bold). La deuxième paire de coordonnées optionnelle peut être utilisée si le texte ne doit pas être imprimé horizontalement.
PARSERFUNCS_LISTFUNC_FUNC_THETA_[ANGULAR_COORDS]= theta(x,y,z) VAL - Calcule l'angle entre l'axe z et le vecteur (x,y,z). %%DEFINED_FOR_ALL%%
PARSERFUNCS_LISTFUNC_FUNC_TIMEFORMAT_[TIME_STRING]= timeformat(sFormat,fTimeVal) STR - Formate l'heure fTimeVal selon le schéma sFormat. Si le schéma est une chaîne de caractères vide, le format interne par défaut est utilisé. Les caractères suivants dans sFormat sont remplacés par la valeur temporelle correspondante en fonction de leur longueur :%%ITEMIZE%%Y : année%%ITEMIZE%%M : mois%%ITEMIZE%D : jour (comme valeur de date)%%ITEMIZE%d : jour (comme durée)%%ITEMIZE%H : Heure (en UTC)%%ITEMIZE%h : heure (dans le fuseau horaire actuel)%%ITEMIZE%m : minute%%ITEMIZE%%s : seconde%%ITEMIZE%i : milliseconde%%ITEMIZE%u : microseconde%ITEMIZE_END%%%Exemple : "YY-MM-DD HH:mm:ss"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The last %%ITEMIZE_END%% was replaced with %ITEMIZE_END%% %e erroneously. A possible approach could be to replace the %%SOMETHING%% tokens with e.g. %_1_% (with ascending numbers per string), store them, translate the string and then replace it back. Do not use %%1%%, because that has another meaning.

Comment on lines +445 to +447
PARSERFUNCS_LISTCMD_TABLEHEAD= Befehl: Syntax und Ergebnis: Fonction :
PARSERFUNCS_LISTCMD_CMD_ABORT_[FLOWCTRL]= abort - Bricht eine interaktive Schleifendefinition oder Plotkomposition in der Konsole ab, so dass die Konsole wieder normal verwendet werden kann
PARSERFUNCS_LISTCMD_CMD_ABOUT_[MAINCTRL]= about - Zeigt Lizenz- und Urheberinformationen zu NumeRe in der Konsole an
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not translated?

# avec ce programme. Si ce n'est pas le cas, voir <http://www.gnu.org/licenses/>.
# ========================================================================
# LANGUAGE FILE: numere.nlng
LANGUAGE: FR
Copy link
Member

@numeredev numeredev Mar 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not belong here. Something's happened.

Comment on lines +44 to +47
DEFINED_FOR_ALL=Definiert für alle reellen oder komplexen Zahlen
DEFINED_FOR_ALL_C_RANGE_R=Definiert für alle komplexen Zahlen oder für reelle Zahlen im Bereich
DEFINED_REAL=Definiert für alle reellen Zahlen
DEFINED_NATURAL=Definiert für natürliche Zahlen
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has not been translated (here it is allowed)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't that the same file as the other Python file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants