Skip to content

Commit

Permalink
[librptexture] Don't localize "sRGB" by itself.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
GerbilSoft committed Dec 16, 2023
1 parent 7493283 commit c280ee5
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 44 deletions.
7 changes: 1 addition & 6 deletions locale/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: rom-properties 2.2+\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-12-16 13:47-0500\n"
"POT-Creation-Date: 2023-12-16 13:50-0500\n"
"PO-Revision-Date: 2023-09-14 13:28\n"
"Last-Translator: \n"
"Language-Team: German\n"
Expand Down Expand Up @@ -9474,11 +9474,6 @@ msgctxt "PowerVR3|ColorSpace"
msgid "Linear RGB"
msgstr ""

#: ../src/librptexture/fileformat/PowerVR3.cpp:1042
msgctxt "PowerVR3|ColorSpace"
msgid "sRGB"
msgstr ""

#: ../src/librptexture/fileformat/PowerVR3.cpp:1046
#: ../src/librptexture/fileformat/PowerVR3.cpp:1050
msgctxt "PowerVR3"
Expand Down
7 changes: 1 addition & 6 deletions locale/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: rom-properties 2.1+\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-12-16 13:47-0500\n"
"POT-Creation-Date: 2023-12-16 13:50-0500\n"
"PO-Revision-Date: 2021-04-02 22:56-0400\n"
"Last-Translator: Amnesia1000\n"
"Language-Team: \n"
Expand Down Expand Up @@ -9533,11 +9533,6 @@ msgctxt "PowerVR3|ColorSpace"
msgid "Linear RGB"
msgstr "RGB Lineal"

#: ../src/librptexture/fileformat/PowerVR3.cpp:1042
msgctxt "PowerVR3|ColorSpace"
msgid "sRGB"
msgstr "sRGB"

#: ../src/librptexture/fileformat/PowerVR3.cpp:1046
#: ../src/librptexture/fileformat/PowerVR3.cpp:1050
msgctxt "PowerVR3"
Expand Down
7 changes: 1 addition & 6 deletions locale/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: rom-properties 2.2+\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-12-16 13:47-0500\n"
"POT-Creation-Date: 2023-12-16 13:50-0500\n"
"PO-Revision-Date: 2023-07-14 18:16\n"
"Last-Translator: \n"
"Language-Team: French\n"
Expand Down Expand Up @@ -9390,11 +9390,6 @@ msgctxt "PowerVR3|ColorSpace"
msgid "Linear RGB"
msgstr ""

#: ../src/librptexture/fileformat/PowerVR3.cpp:1042
msgctxt "PowerVR3|ColorSpace"
msgid "sRGB"
msgstr "sRGB"

#: ../src/librptexture/fileformat/PowerVR3.cpp:1046
#: ../src/librptexture/fileformat/PowerVR3.cpp:1050
msgctxt "PowerVR3"
Expand Down
7 changes: 1 addition & 6 deletions locale/pt.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: rom-properties\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-12-16 13:47-0500\n"
"POT-Creation-Date: 2023-12-16 13:50-0500\n"
"PO-Revision-Date: 2023-07-17 19:58\n"
"Last-Translator: Null Magic\n"
"Language-Team: \n"
Expand Down Expand Up @@ -9501,11 +9501,6 @@ msgctxt "PowerVR3|ColorSpace"
msgid "Linear RGB"
msgstr ""

#: ../src/librptexture/fileformat/PowerVR3.cpp:1042
msgctxt "PowerVR3|ColorSpace"
msgid "sRGB"
msgstr ""

#: ../src/librptexture/fileformat/PowerVR3.cpp:1046
#: ../src/librptexture/fileformat/PowerVR3.cpp:1050
msgctxt "PowerVR3"
Expand Down
7 changes: 1 addition & 6 deletions locale/rom-properties.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: rom-properties 2.2.1+\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-12-16 13:47-0500\n"
"POT-Creation-Date: 2023-12-16 13:50-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -9407,11 +9407,6 @@ msgctxt "PowerVR3|ColorSpace"
msgid "Linear RGB"
msgstr ""

#: ../src/librptexture/fileformat/PowerVR3.cpp:1042
msgctxt "PowerVR3|ColorSpace"
msgid "sRGB"
msgstr ""

#: ../src/librptexture/fileformat/PowerVR3.cpp:1046
#: ../src/librptexture/fileformat/PowerVR3.cpp:1050
msgctxt "PowerVR3"
Expand Down
7 changes: 1 addition & 6 deletions locale/ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ msgid ""
msgstr ""
"Project-Id-Version: rom-properties 2.1+\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-12-16 13:47-0500\n"
"POT-Creation-Date: 2023-12-16 13:50-0500\n"
"PO-Revision-Date: 2023-06-25 01:20\n"
"Last-Translator: \n"
"Language-Team: Russian\n"
Expand Down Expand Up @@ -9539,11 +9539,6 @@ msgctxt "PowerVR3|ColorSpace"
msgid "Linear RGB"
msgstr ""

#: ../src/librptexture/fileformat/PowerVR3.cpp:1042
msgctxt "PowerVR3|ColorSpace"
msgid "sRGB"
msgstr ""

#: ../src/librptexture/fileformat/PowerVR3.cpp:1046
#: ../src/librptexture/fileformat/PowerVR3.cpp:1050
msgctxt "PowerVR3"
Expand Down
7 changes: 1 addition & 6 deletions locale/uk.po
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ msgid ""
msgstr ""
"Project-Id-Version: rom-properties 2.1+\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-12-16 13:47-0500\n"
"POT-Creation-Date: 2023-12-16 13:50-0500\n"
"PO-Revision-Date: 2018-04-13 04:36+0200\n"
"Last-Translator: Egor <[email protected]>\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -9451,11 +9451,6 @@ msgctxt "PowerVR3|ColorSpace"
msgid "Linear RGB"
msgstr ""

#: ../src/librptexture/fileformat/PowerVR3.cpp:1042
msgctxt "PowerVR3|ColorSpace"
msgid "sRGB"
msgstr ""

#: ../src/librptexture/fileformat/PowerVR3.cpp:1046
#: ../src/librptexture/fileformat/PowerVR3.cpp:1050
msgctxt "PowerVR3"
Expand Down
2 changes: 1 addition & 1 deletion src/librptexture/fileformat/DirectDrawSurface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1408,7 +1408,7 @@ int DirectDrawSurface::getFields(RomFields *fields) const
// ddspf.dwFlags (high bits; nVidia-specific)
const uint32_t pf_flags_high = (ddsHeader->ddspf.dwFlags >> 30);
static const char *const ddspf_dwFlags_names[] = {
"sRGB",
"sRGB", // Not translatable
NOP_C_("DirectDrawSurface|ddspf", "Normal Map"),
};
vector<string> *const v_ddspf_dwFlags_names = RomFields::strArrayToVector_i18n(
Expand Down
2 changes: 1 addition & 1 deletion src/librptexture/fileformat/PowerVR3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ int PowerVR3::getFields(RomFields *fields) const
// Color space.
static const char *const pvr3_colorspace_tbl[] = {
NOP_C_("PowerVR3|ColorSpace", "Linear RGB"),
NOP_C_("PowerVR3|ColorSpace", "sRGB"),
"sRGB", // Not translatable
};
static_assert(ARRAY_SIZE(pvr3_colorspace_tbl) == PVR3_COLOR_SPACE_MAX, "pvr3_colorspace_tbl[] needs to be updated!");
if (pvr3Header->color_space < ARRAY_SIZE(pvr3_colorspace_tbl)) {
Expand Down

0 comments on commit c280ee5

Please sign in to comment.