Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wxGUI: Fix various typos in comments, strings, and methods #4710

Merged
merged 20 commits into from
Nov 18, 2024

Conversation

echoix
Copy link
Member

@echoix echoix commented Nov 16, 2024

I started by fixing the typo of "circle" (instead of "cricle") as I observed in this PR and that @petrasovaa confirmed that for GUI, we don't guaranty compatibility of our function names #4693 (comment)

But then I continued, and ended up opening every file in the gui/ folder, and skimming through the unknown words of cspell for real typos, without any other setup. When there was a possibility of multiple spellings, I selected the en-US variation for consistency.

It is not exhaustive (i.e., license vs licence), but it is a good start.

When changing a localized string, I also applied the fixes in the translation files.
For the changes in the translated files, I verified that the template had been fixed. If the fixed msgid already existed and contained exactly the same string, I removed the wrong string (that would be a duplicate). In the first commits of the PR, there is a translation change for "contiguous" that was already fixed, and the only file that didn't have the exact same translation was locale/po/grasswxpy_ru.po, so both were kept. That's why 4 translation files have each 5 removed lines instead of fixes.

@github-actions github-actions bot added GUI wxGUI related vector Related to vector data processing Python Related code is in Python C Related code is in C HTML Related code is in HTML translation Message translation related libraries docs labels Nov 16, 2024
locale/po/grasswxpy_es.po Show resolved Hide resolved
locale/po/grasswxpy_es.po Show resolved Hide resolved
locale/po/grasswxpy_fr.po Show resolved Hide resolved
locale/po/grasswxpy_fr.po Show resolved Hide resolved
locale/po/grasswxpy_pt_BR.po Show resolved Hide resolved
locale/po/grasswxpy_pt_BR.po Show resolved Hide resolved
locale/po/grasswxpy_zh.po Show resolved Hide resolved
@echoix echoix merged commit 9313630 into OSGeo:main Nov 18, 2024
26 checks passed
@echoix echoix deleted the typo-wxgui branch November 18, 2024 22:41
@github-actions github-actions bot added this to the 8.5.0 milestone Nov 18, 2024
neteler added a commit that referenced this pull request Nov 21, 2024
This PR de-duplicates the PO message files (currently the compilation is broken, apparently introduced in #4710), using

```
cd locale/po/
for i in $(ls grass*.po); do
    msguniq --use-first ${i} > $i.tmp
    rm -f ${i}
    mv $i.tmp ${i}
done
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Related code is in C docs GUI wxGUI related HTML Related code is in HTML libraries Python Related code is in Python translation Message translation related vector Related to vector data processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants