Commit Graph

29 Commits

Author SHA1 Message Date
Vadim Zeitlin
e539cb69bb Remove platform-specific translations support
As shown by the fact that no other platform-specific translations were
ever added since the initial version of locale/msw/it.po added way back
in 4d931bcca0 (Translate '&Help' to '&' for italian Windows only,
2005-08-12), this is not especially useful, so just handle this
particular case specially in wxGetStockLabel() and remove support for
platform-specific translations.

This allows to simplify the makefiles and the catalog loading code as
there is no need to deal with the files in subdirectories any more.
2021-02-07 00:06:21 +01:00
Vadim Zeitlin
b5282c682f Recognize wxGETTEXT_IN_CONTEXT macros in wx sources
Tell xgettext to extract the strings appearing inside
wxGETTEXT_IN_CONTEXT and wxGETTEXT_IN_CONTEXT_PLURAL too.
2021-02-06 15:15:29 +01:00
Lauri Nurmi
232d1c1156 Feed sorted output to xargs when generating wxstd.pot
The `find' command isn't generally guaranteed to output filenames in
particular order, and without sorting, the resulting .pot from identical
input files could have its source line comment entries in different order
depending on what OS and filesystem it was generated on.

Co-authored-by: VZ <vz-github@zeitlins.org>
2021-02-05 00:50:33 +02:00
Lauri Nurmi
87c56c7c1d Do not sort content of generated POT files alphabetically
Sorting is discouraged even by the GNU gettext documentation:
https://www.gnu.org/software/gettext/manual/html_node/xgettext-Invocation.html#Output-details

Alphabetical order means related messages that are close to each other
in a source file are likely to be far far away from each other in the .po
file that a translator works on.

Sorting was added in ea8849aaf6 (updated to use msgmerge, 2000-03-07)
2021-02-04 23:01:07 +02:00
Lauri Nurmi
9e4b1571b1 Extract translatable strings from Obj-C++ files (.mm) also
Until now any translatable strings inside .mm files were ignored,
and half a dozen of them didn't appear anywhere else, and thus
remained untranslated.
2021-01-21 13:39:08 +02:00
Václav Slavík
249c9e28e5 Extract translator comments into wxstd.pot
Extract the commonly used TRANSLATORS: prefix into translation files, to
provide some additional context where needed.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-11-25 19:04:29 +00:00
Vadim Zeitlin
b490c63600 Regenerated message catalogs with the strings inside wxGetTranslation().
We didn't extract the strings inside wxGetTranslation() in the message catalog
when creating it using xgettext, do it now.

This notably fixes the missing translations for the generic progress dialog
elapsed/estimated/remaining time labels.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-08-23 16:22:35 +00:00
Vadim Zeitlin
3f66f6a5b3 Remove all lines containing cvs/svn "$Id$" keyword.
This keyword is not expanded by Git which means it's not replaced with the
correct revision value in the releases made using git-based scripts and it's
confusing to have lines with unexpanded "$Id$" in the released files. As
expanding them with Git is not that simple (it could be done with git archive
and export-subst attribute) and there are not many benefits in having them in
the first place, just remove all these lines.

If nothing else, this will make an eventual transition to Git simpler.

Closes #14487.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-26 16:02:46 +00:00
Vadim Zeitlin
2ff4ddf830 Remove duplicate "About" entries from message catalogs.
Somehow we had duplicate entries for "About" string in almost all the message
catalogs. This prevented them from compiling correctly.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-18 17:12:41 +00:00
Vadim Zeitlin
7e2003703c Don't use -kAddToPopUp() gettext hack with Scintilla.
Instead, create a dummy file containing the user-visible strings defined in
Scintilla sources. For now it's manually managed but it might make sense to
automatically generate it in the future.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-09 11:13:20 +00:00
Václav Slavík
04458ef496 don't merge msw/it.po with wxstd.pot during 'make allmo', it's manually maintained
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-24 07:54:18 +00:00
Václav Slavík
d6a35dc1f6 contrib is no more, updated locale/Makefile accordingly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-24 07:33:56 +00:00
Václav Slavík
a2b18c5746 renamed wxstd.po to wxstd.pot so that it uses standard gettext extension for catalog templates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-12 10:12:49 +00:00
Vadim Zeitlin
0e2132fd88 extract popup menu item labels from Scintilla sources too (patch 1679509)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 00:51:03 +00:00
Robin Dunn
49638afa16 Change def of WX_LINGUAS so it works on OS X.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-09 18:54:14 +00:00
Mattia Barbon
62603868bc Regenerated PO files.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-21 16:02:15 +00:00
Michael Wetherell
4d931bcca0 Translate '&Help' to '&' for italian Windows only
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-12 15:29:57 +00:00
Vadim Zeitlin
15d0695440 added wxPLURAL() macro
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-01 21:16:30 +00:00
Václav Slavík
c99d2f252f check the syntax when compiling .po files into .mo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-14 09:29:38 +00:00
Mattia Barbon
93ff73b308 gettext (correctly) uses "1 message" (singular).
Take that into account in make stats.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-03 19:32:03 +00:00
Vadim Zeitlin
c19b738e74 force making stats
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-27 19:15:33 +00:00
Vadim Zeitlin
ad749aaf03 added stats target to show the number of translated strings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-21 16:01:15 +00:00
Václav Slavík
c7206e6424 reverted my locale change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-15 00:09:09 +00:00
Václav Slavík
818ff14582 make all now compiles .mo catalogs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-13 13:48:08 +00:00
Václav Slavík
23cf065f01 added contrib strings to catalog and regenerated po files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-24 13:30:01 +00:00
Ron Lee
019df10ed0 merged new and updated translations from WX_2_2_BRANCH.
updated all po files with the main trunk source.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-15 18:41:37 +00:00
Bryan Petty
f6bcfd974e merged 2.2 branch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-07-15 19:51:35 +00:00
Vadim Zeitlin
ea8849aaf6 updated to use msgmerge
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-07 12:17:16 +00:00
Vadim Zeitlin
efa5b5de4b (primitive) makefile for msg catalogs and the updated wxstd.po
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 16:35:13 +00:00