Commit Graph

61 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
e234de20e6 [locale] Update rom-properties.pot and *.po. 2025-04-19 16:34:50 -04:00
David Korth
5237836deb [locale] Update the Nintendo3DS "INVALID" string. 2025-03-22 21:57:07 -04: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
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
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
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
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
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
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
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
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
David Korth
6536df03c8 [locale] Updated rom-properties.pot and *.po.
Note that I'm building the KF6 frontend locally now, so the generated
UI files for KF6 are showing up in the .pot and .po files now.

ISO: Remove "fuzzy" markings from "Application".
2024-02-25 13:34:13 -05:00
David Korth
101e32abb6 [locale] fr.po: Remove a '&' from a string that isn't supposed to have it. 2023-12-17 12:33:25 -05:00
David Korth
33327aba2a [locale] Add some more French translations from @NotaInutilis. 2023-12-16 19:50:07 -05:00
David Korth
091064e3c4 [locale] fr.po: "Achievement" in French is "Succès", not "Réalisation".
This one's on me; the original submitted by @NotaInutilis was correct.

"Succès" is the correct one to use in the context of video games.
2023-12-16 14:08:13 -05:00
David Korth
c280ee5e08 [librptexture] Don't localize "sRGB" by itself.
French Wikipedia [1] refers to it as "sRGB", even though I'd have thought
it would be changed to "sRVB".

[1] https://fr.wikipedia.org/wiki/SRGB
2023-12-16 13:51:05 -05:00
David Korth
74932832d3 [locale] Updated rom-properties.pot and *.po. 2023-12-16 13:49:06 -05:00
David Korth
cd34bc7970 [locale] Add more French translations from @NotaInutilis. 2023-12-16 13:46:28 -05:00
David Korth
4012120486 [librptexture] PowerVR3: Fix context for "Flags".
Should be "PowerVR3", not "PowerVR".
2023-11-07 18:40:12 -05:00
David Korth
e484e871a7 [libromdata] NES: "Pokkun Mogura" has one 'a'.
This appears to be an error on the NESdev wiki:
https://www.nesdev.org/wiki/NES_2.0

Reported by @xxmichibxx.
2023-11-07 18:18:47 -05:00
David Korth
4e25c8f899 [locale] Updated rom-properties.pot and *.po. 2023-10-01 14:50:09 -04:00
David Korth
e5c64ddec1 [locale] Updated rom-properties.pot and *.po. 2023-08-27 15:55:18 -04:00
David Korth
d90e5d37c6 Change all "*.*" file filters to "*".
"*.*" is a DOS holdover that's still used on Windows for reasons, and
on Windows, I believe it can match files that *don't* have a file
extension, whereas that isn't the case on Linux.

[libwin32ui] WinUI: Convert "*" to "*.*" when displaying file dialogs.
Windows users are more familiar with "*.*". In my testing, both "*"
and "*.*" functioned the same on Windows, and both matched files with
no file extension.
2023-08-13 14:33:45 -04:00
David Korth
d0d603a851 [locale] Updated rom-properties.pot and *.po. 2023-08-13 13:47:41 -04:00
David Korth
44b5637e94 [librpfile] Ext2AttrData: Split the lsattr character out of the label string.
It's now stored in a separate char before the label string. Note that
this does waste space (3 bytes on 32-bit, 7 bytes on 64-bit), but it's
easier to add the character there in the .c file. Putting the character
at the end wouldn't have saved much space anyway, since the data is
stored in an array, so the pointers would be aligned anyway.

[locale] Removed the lsattr characters from the translated strings.

Code size difference: (64-bit Gentoo Linux, gcc-13.2.0, release build, no LTO)

   text    data     bss     dec     hex filename
   1952     528       0    2480     9b0 Ext2AttrData.c.o [before]
   1886     704       0    2590     a1e Ext2AttrData.c.o [after]
    -66    +176       0    +110     +6e Difference
2023-08-11 20:44:02 -04:00
David Korth
304a8cd2f0 Rename "Linux Attributes" to "Ext2 Attributes".
In preparation for adding XFS attributes.
2023-08-11 00:42:57 -04:00
David Korth
f5479dbf67 [locale] Updated rom-properties.pot and *.po. 2023-08-05 14:35:13 -04:00
David Korth
3236ae7af2 [locale] Updated rom-properties.pot and *.po for the 2.2.1 release. 2023-07-30 12:44:37 -04:00
David Korth
f826eccb88 [locale] Updated rom-properties.pot and *.po. 2023-07-29 00:42:29 -04:00
David Korth
0956573212 Don't translate the KeyManager Import menu actions.
"Wii keys.bin", "Wii U otp.bin", etc. aren't translatable.

The KDE frontend didn't translate them anyway, and the only part of
the GTK frontend that translated these strings was the
rp_key_manager_tab_show_key_import_return_status() call.

Windows:
- Move import_menu_actions[] out of importKeysFromBin().
- Change it to LPCTSTR.
- Add an array of import_menu_actions_ids[].
- Use these arrays to create the menu using CreatePopupMenu() and
  AppendMenu() instead of using a MENU resource.

[locale] Remove these translated strings, which were identical to the
untranslated strings in cases where they were actually translated.
2023-07-18 18:15:44 -04:00
David Korth
0d1886fc5d [gtk] DosAttrView: Use '&' mnemonics.
gtk-compat: New wrapper function rp_gtk_check_button_new_with_mnemonic()
that converts e.g. "&Hidden" to "_Hidden" and then calls the original
gtk_check_button_new_with_mnemonic() function.

[locale] Update rom-properties.pot and *.po.

This removes six GTK-specific strings for DosAttrView.
2023-07-17 18:56:53 -04:00
David Korth
9931faff0b [locale] fr.po: Don't use Unicode ellipses. ('…') 2023-07-16 19:26:43 -04:00
David Korth
45ad17f22d [locale] Update fr.po with new translations from Crowdin.
Also imported rp-fr_FR.rc, which I forgot to add before.
2023-07-16 19:26:06 -04:00
David Korth
5c079438e3 [locale] Updated rom-properties.pot and *.po. 2023-07-11 20:48:28 -04:00
David Korth
095d64cb34 [locale] Updated de.po and fr.po with new translations from Crowdin.
New translators:
- @NotaInutilis: French
- @xxmichibxx: German
2023-07-09 22:55:49 -04:00