Commit Graph

246 Commits

Author SHA1 Message Date
David Korth
665a9f878c [locale] fr.po: Translate Ext2AttrView's placeholders by adding a space before the colon. 2025-05-11 03:47:23 -04:00
David Korth
94470e319a [kde] Use QC_() for translation, not QObjectDerivedClass::tr().
The xgettext call in locale/CMakeLists.txt doesn't detect
QObjectDerivedClass::tr(). Because of this, we ended up missing
a few strings for translation.

[locale] Update with the missed strings.
2025-05-11 03:46:48 -04:00
David Korth
9a5550f1f5 [locale] Update rom-properties.pot and *.po.
Forgot to do this for the v2.5.1 release...
2025-05-11 03:39:18 -04:00
David Korth
1dc3609bc7 [rpcli] rpcli.cpp: Colorize output in ExtractImages().
NOTE: Using Yellow for cases where an animated icon is requested but
libpng doesn't support APNG.

Add "is" to the "APNG is not supported" line.
2025-04-28 18:19:02 -04:00
David Korth
2be8490e97 [libromdata] CBMDOS: Move "Directory" to the "RomData" context.
It's also used by the SNES class for Nintendo Power cartridges.
2025-04-26 15:56:00 -04:00
David Korth
c175d25696 [libromdata] ISO: Show the sector format instead of just the sector size.
Format is displayed as e.g. "MODE1/2048". If subchannels are present,
they are added as e.g. "+96".

TODO: More testing.
2025-04-26 11:16:46 -04:00
David Korth
d29169b35c [locale] es.po: Missing apostrophe in a string:
msgid "Extracting {0:s} into '{1:s}'"
msgstr "Extracción de {0:s} en '{1:s}'"
2025-04-22 20:26:40 -04:00
David Korth
e234de20e6 [locale] Update rom-properties.pot and *.po. 2025-04-19 16:34:50 -04:00
David Korth
363899a396 [locale] ar.po, rom-properties.pot: "Invalid" -> "INVALID" for one Nintendo3DS string. 2025-04-10 19:50:56 -04:00
David Korth
abff9a39a4 [locale] rom-properties.pot: Fix the contexts for a couple of C++20 format strings. 2025-03-31 20:22:50 -04:00
David Korth
5d11ea9626 [rpcli] rpcli.cpp: Use _tcstol() instead of _ttol().
Besides having better error checking, glibc's atol() is simply a
wrapper around strtol() anyway. (Unsure about MSVC, but it's
probably similar.)

Among other things, with _ttol(), "-xJ" would end up being interpreted
as "-x0", since _ttol() returns 0 for an invalid number.

[lcoale] es.po, pt.po: Remove incorrect localizations for this code.
2025-03-27 18:47:59 -04:00
David Korth
5237836deb [locale] Update the Nintendo3DS "INVALID" string. 2025-03-22 21:57:07 -04:00
David Korth
0fe7874028 [locale] de.po: Fix a translated libfmt format string error.
Should've tested this before merging, but oh well...

[346/404] Generating de.gmo
FAILED: locale/de.gmo build/locale/de.gmo
cd build/locale && /usr/bin/msgfmt -c -o build/locale/de.gmo locale/de.po
locale/de.po:884: The format specification for argument 2 in 'msgid_plural'
	is applicable to the types [string], but the format specification
	for argument 2 in 'msgstr[0]' is not.
/usr/bin/msgfmt: found 2 fatal errors
2025-01-25 01:08:49 -05:00
David Korth
e9bbf09ed5 [locale] fr.po: Consistently use non-breaking spaces between text and a colon.
Some translations had this, but not all.
2025-01-25 00:36:19 -05:00
David Korth
674c38155f [locale] Update rom-properties.pot and *.po, including libfmt changes.
This took a while, since all of the translated strings had to be manually
converted from printf-style formatting to libfmt-style formatting.

Some "duplicate" messages in different contexts are now filled in if
other contexts had the same messages. (TODO: Deduplicate them.)

es.po: Add a missing colon to an rpcli message.

pt.po:
- Removed an incorrect fuzzy translation for No-XML builds.
- Add a missing newline to the amiibo.life notice.
- Add a missing colon to an rpcli message.

ru.po: s/DSK2/SDK2/ (assuming "DSK" is a typo...)
2025-01-25 00:34:24 -05:00
David Korth
5b34fac7e9 [locale] it.po: Added more Italian translations from MaRod92.
Importing the translations now before the .pot gets updated with all of
the libfmt changes.
2025-01-24 22:26:38 -05:00
David Korth
1e72359a0a [locale] Update de.po and it.po from Crowdin.
Italian translation updates provided by MaRod92.
German translation updates provided by @xxmichibxx.

[win32] rp-it_IT.rc: Copy some translations from it.po.
2024-11-10 20:10:01 -05:00
David Korth
f04bcc35f5 [locale] Update rom-properties.pot and *.po. 2024-11-10 19:20:02 -05:00
David Korth
2d076a7ddf [locale] Update rom-properties.pot and *.po. 2024-10-04 18:41:55 -04:00
David Korth
f8e7b84130 [locale] CMakeLists.txt: Add TC_(), QC_(), and related to the xgettext call.
Without these, various strings that are only used in the Qt or Win32
frontends and were changed to use these shorter macros won't be added to
and/or will be removed from rom-properties.pot.

Forgot to do this in commit 1ff728e22d.
([kde,win32] Add QString/tstring macros for localization.)
2024-10-04 18:38:57 -04:00
David Korth
d0436285a2 [locale] it.po: Add an Italian translation for C_("RomData|Audio", "Comment") from MaRod92. 2024-09-28 20:46:13 -04:00
David Korth
0779506e3b [rpcli] rpcli.cpp: Fix positional arguments in the "Extracting mipmap level" string.
Should be %1$d and %2$s, not %d and %s.
2024-09-04 22:59:15 -04:00
David Korth
b502eca35d [libromdata] ADX: Don't use ostringstream for the sample rate; use "%u Hz" instead.
Consolidate "%u Hz" from SNDH into the RomData context.
2024-07-20 12:13:43 -04:00
David Korth
338b1c5111 [locale] de.po: Add more German translations from @xxmichibxx. 2024-07-04 13:55:00 -04:00
David Korth
577b938c5c [locale] es.po: Add some translations from spencerchris8080 and clean up other translations. 2024-07-04 13:50:17 -04:00
David Korth
b88bb4fcf0 [locale] pt.po: "Wii WAD Files" does not translate as "Todos os arquivos".
Not sure how this happened...

("Todos os arquivos" is "All Files", e.g. from a file filter.)
2024-05-10 03:25:27 -04:00
David Korth
f11ce73d3e [libromdata] Consolidate the "Description" strings into the "RomData" context.
Not including NOP_C_() versions in arrays.
2024-05-06 18:33:24 -04:00
David Korth
802e5b449c [locale] Add more Italian translations from MaRod92. 2024-05-05 12:35:58 -04:00
David Korth
b9058b8765 [locale] exclusions.po: Correctly exclude "_Close" for GTK3/GTK4.
Copy/paste error resulted in two "_Open" strings.

Remove "_Close" from the other .po files.

This fixes a regression from commit efbd0dddde.
([gtk] stub-export.c: Change the RomDataView test program's button from "OK" to "Close", and localize it.)
2024-05-04 21:28:01 -04:00
David Korth
3fd51c682f [librptext] conversion.cpp: Add support for JEDEC and Metric file size suffixes.
KDE is re-implementing a configuration setting for this, so we should be
able to support it once it's reimplemented.

For 1,024 bytes:
-    IEC = 1.00 KiB
-  JEDEC = 1.00 KB
- Metric = 1.02 KB

Note that the configuration file isn't checked yet, so the new feature
isn't used anywhere except in TextFuncsTest.

[librptext/tests] TextFuncsTest: Add tests for all three binary unit
dialects.
2024-05-04 21:23:28 -04:00
David Korth
fad6b0831b [locale] es.po: Fix translation for "When using a metered network connection".
This was somehow put in the wrong location, so it was being used as
"Don't download any images".
2024-04-26 21:17:21 -04:00
David Korth
dcc1b1c122 [locale] es.po: Spanish uses "n != 1", not "n > 1".
This was introduced in the initial es.po commit, possibly as a
copy/paste error somewhere else.
(commit ef8b0b7cfa)

The correct version was added when Crowdin was added in
commit 5981c6d4d1.
2024-04-22 20:52:27 -04:00
David Korth
344bccf81e s/%1%s/%1$s/g 2024-04-06 12:55:59 -04:00
David Korth
50181eed00 [libromdata] Consolidate the "Type" strings into the "RomData" context.
Not including NOP_C_() versions in arrays.
2024-04-06 12:35:58 -04:00
David Korth
d7d64cd44a [locale] es.po: Add missing accents for "Japón" and "Japonés". 2024-04-02 00:08:30 -04:00
David Korth
1551b611cd Add more Arabic translations from Chipsum.
Includes gettext translations and a translated svrplus .rc file.
2024-04-02 00:07:25 -04:00
David Korth
c9558b613f [libromdata] Consolidate the "Flags" strings into the "RomData" context.
Not included yet: NOP_C_("EXE|Exports", "Flags")

NOTE: es.po had C_("MachO", "Flags") translated as "Parametros" instead
of "Attributos". It's now using the common "Attributos". I don't think
there was really a significant distinction here...
2024-03-30 18:07:58 -04:00
David Korth
5b662dd80c [locale] Update rom-properties.pot and *.po. 2024-03-30 17:59:08 -04:00
David Korth
7a68787e0b [locale] Add Arabic gettext translations from Motwera and Chipsum. 2024-03-30 17:52:02 -04:00
David Korth
efbd0dddde [gtk] stub-export.c: Change the RomDataView test program's button from "OK" to "Close", and localize it.
This matches Thunar.

gtk-i18n.h: Add GTK_I18N_STR_CLOSE.

[locale] exclusions.po: Exclude the "_Close" strings.
2024-03-21 23:24:42 -04:00
David Korth
34c98c12d2 [locale] Add a few more German translations from Crowdin.
Some of these were the ones that disappeared earlier.
2024-03-17 01:54:17 -04:00
David Korth
1ef743fc93 [locale] Add more German translations from @xxmichibxx.
NOTE: A few translations have disappeared but have since been re-added to
Crowdin. Waiting for git to sync before pulling in those changes...
2024-03-16 22:23:38 -04:00
David Korth
241c2416d1 [locale] Updated rom-properties.pot and *.po. 2024-03-16 22:00:21 -04:00
David Korth
d5b1670e09 [libromdata] Consolidate four "OS Version" strings into the RomData context.
They're all the same string, so there's no need for four separate
versions.

TODO: Wim has "OS Version" as well, but it's part of a string array
that's localized using RomFields::strArrayToVector_i18n(), so we can't
easily consolidate it. (Unless we also consolidate "Blocks" and "Type"...)

fr.po:
- Clean out the old "Version" strings.
- Add "OS Version" -> "Version du OS". (TODO: "OS" or "SO"?)

pt.po:
- Change the "Language" tag back to "pt_BR".
- Was accidentally reverted to just "pt" when "Filename" was consolidated
  in commit 1a37db5612.
  ([libromdata] Consoliate four "Filename" strings into the RomData context.)
2024-03-09 15:36:28 -05:00
David Korth
2a59fa1cf0 [locale] Updated rom-properties.pot and *.po. 2024-03-09 15:32:17 -05:00
David Korth
9f8f3cc79b [locale] Add more German translations from @xxmichibxx. 2024-03-09 15:22:53 -05:00
David Korth
44d96751e9 [locale] Add more Italian translations from MaRod92. 2024-03-03 18:55:06 -05:00
David Korth
9ae0e2ada1 [locale] Add more Italian translations from MaRod92.
Includes an svrplus .rc file.

TODO: Adjust the .rc files for dialog sizing if necessary.
2024-03-01 18:38:18 -05:00
David Korth
99ecd3c4fa [locale] Add "Filename" translations for some languages that were missing them. 2024-02-25 13:40:45 -05:00
David Korth
1a37db5612 [libromdata] Consoliate four "Filename" strings into the RomData context.
They're all the same string, so there's no need for four separate
versions.

TODO: CBMDOS has "Filename" as well, but it's part of a string array
that's localized using RomFields::strArrayToVector_i18n(), so we can't
easily consolidate it. (Unless we also consolidate "Blocks" and "Type"...)
2024-02-25 13:37:18 -05:00