Skip to content

Commit

Permalink
Add new translation strings
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jan 17, 2024
1 parent 9253bf9 commit cf635fc
Show file tree
Hide file tree
Showing 46 changed files with 271 additions and 6 deletions.
15 changes: 11 additions & 4 deletions UI/DriverManagerScreen.cpp
Expand Up @@ -51,6 +51,12 @@ struct DriverMeta {
return false;
}

int schemaVersion = meta.root().getInt("schemaVersion");
if (schemaVersion > 1) {
*errorStr = "unknown schemaVersion in meta.json";
return false;
}

if (!meta.root().getString("name", &name) || name.empty()) {
*errorStr = "missing driver name in json";
return false;
Expand Down Expand Up @@ -83,12 +89,13 @@ DriverChoice::DriverChoice(const std::string &driverName, bool current, UI::Layo
layoutParams_->height = 220;
}
auto gr = GetI18NCategory(I18NCat::GRAPHICS);
auto di = GetI18NCategory(I18NCat::DIALOG);

// Read the meta data
DriverMeta meta{};
bool isDefault = driverName.empty();
if (isDefault) {
meta.description = "The default installed driver on your system";
meta.description = gr->T("Default GPU driver");
}

Path metaPath = GetDriverPath() / driverName / "meta.json";
Expand All @@ -106,7 +113,7 @@ DriverChoice::DriverChoice(const std::string &driverName, bool current, UI::Layo
bool usable = isDefault || true;
#endif

Add(new ItemHeader(driverName.empty() ? gr->T("Default driver") : driverName))->SetLarge(true);
Add(new ItemHeader(driverName.empty() ? gr->T("Default GPU driver") : driverName))->SetLarge(true);
if (current) {
Add(new NoticeView(NoticeLevel::SUCCESS, gr->T("Current GPU driver"), ""));
}
Expand All @@ -127,7 +134,7 @@ DriverChoice::DriverChoice(const std::string &driverName, bool current, UI::Layo
}
if (usable) {
if (!current) {
Add(new Choice(gr->T("Use this driver")))->OnClick.Add([=](UI::EventParams &) {
Add(new Choice(di->T("Select")))->OnClick.Add([=](UI::EventParams &) {
UI::EventParams e{};
e.s = name_;
OnUse.Trigger(e);
Expand Down Expand Up @@ -205,7 +212,7 @@ UI::EventReturn DriverManagerScreen::OnCustomDriverUninstall(UI::EventParams &e)
UI::EventReturn DriverManagerScreen::OnCustomDriverInstall(UI::EventParams &e) {
auto gr = GetI18NCategory(I18NCat::GRAPHICS);

System_BrowseForFile(gr->T("Install Custom Driver..."), BrowseFileType::ZIP, [this](const std::string &value, int) {
System_BrowseForFile(gr->T("Install custom driver..."), BrowseFileType::ZIP, [this](const std::string &value, int) {
if (value.empty()) {
return;
}
Expand Down
1 change: 1 addition & 0 deletions UI/DriverManagerScreen.h
Expand Up @@ -16,6 +16,7 @@ class DriverManagerScreen : public TabbedUIDialogScreenWithGameBackground {

protected:
void CreateTabs() override;
bool ShowSearchControls() const override { return false; }

private:
UI::EventReturn OnCustomDriverInstall(UI::EventParams &e);
Expand Down
2 changes: 1 addition & 1 deletion UI/GameSettingsScreen.cpp
Expand Up @@ -110,7 +110,7 @@ static bool SupportsCustomDriver() {

static bool SupportsCustomDriver() {
#ifdef _DEBUG
return true;
return false; // change to true to debug driver installation on other platforms
#else
return false;
#endif
Expand Down
6 changes: 6 additions & 0 deletions assets/lang/ar_AE.ini
Expand Up @@ -408,6 +408,7 @@ Log in = Log in
Log out = Log out
Logged in! = Logged in!
Logging in... = Logging in...
More information... = More information...
Move = ‎تحريك
Move Down = Move Down
Move Up = Move Up
Expand Down Expand Up @@ -566,6 +567,7 @@ Use UI background = ‎إستخدم خلفية الواجهة
9x PSP = 9× PSP
10x PSP = 10× PSP
16x = 16×
AdrenoTools driver manager = AdrenoTools driver manager
Aggressive = ‎عنيف
Alternative Speed = سرعة ثانوية (في %, 0 = ‎غير محدود)
Alternative Speed 2 = Alternative speed 2 (in %, 0 = unlimited)
Expand Down Expand Up @@ -595,6 +597,7 @@ Copy to texture = Copy to texture
CPU Core = ‎أنوية المعالج
Current GPU Driver = Current GPU Driver
Debugging = ‎التصحيح
Default GPU driver = Default GPU driver
DefaultCPUClockRequired = Warning: This game requires the CPU clock to be set to default.
Deposterize = Deposterize
Deposterize Tip = Fixes visual banding glitches in upscaled textures
Expand All @@ -605,6 +608,8 @@ Disable culling = Disable culling
Disabled = Disabled
Display Layout && Effects = ‎أظهر مُعدل النسق
Display Resolution (HW scaler) = Display resolution (HW scaler)
Driver requires Android API version %1, current is %2 = Driver requires Android API version %1, current is %2
Drivers = Drivers
Enable Cardboard VR = Enable Cardboard VR
FPS = FPS
Frame Rate Control = ‎التحكم في معدل الإطارات
Expand All @@ -622,6 +627,7 @@ High = ‎عالي
Hybrid = ‎هجين
Hybrid + Bicubic = ‎هجين + تكعيب
Ignore camera notch when centering = Ignore camera notch when centering
Install custom driver... = Install custom driver...
Install Custom Driver... = Install Custom Driver...
Integer scale factor = Integer scale factor
Internal Resolution = Internal resolution
Expand Down
6 changes: 6 additions & 0 deletions assets/lang/az_AZ.ini
Expand Up @@ -400,6 +400,7 @@ Log in = Log in
Log out = Log out
Logged in! = Logged in!
Logging in... = Logging in...
More information... = More information...
Move = Move
Move Down = Move Down
Move Up = Move Up
Expand Down Expand Up @@ -558,6 +559,7 @@ Use UI background = Use UI background
9x PSP = 9× PSP
10x PSP = 10× PSP
16x = 16×
AdrenoTools driver manager = AdrenoTools driver manager
Aggressive = Aggressive
Alternative Speed = Alternative speed (in %, 0 = unlimited)
Alternative Speed 2 = Alternative speed 2 (in %, 0 = unlimited)
Expand Down Expand Up @@ -587,6 +589,7 @@ Copy to texture = Copy to texture
CPU Core = CPU core
Current GPU Driver = Current GPU Driver
Debugging = Debugging
Default GPU driver = Default GPU driver
DefaultCPUClockRequired = Warning: This game requires the CPU clock to be set to default.
Deposterize = Deposterize
Deposterize Tip = Fixes visual banding glitches in upscaled textures
Expand All @@ -597,6 +600,8 @@ Disable culling = Disable culling
Disabled = Disabled
Display Layout && Effects = Display layout && effects
Display Resolution (HW scaler) = Display resolution (HW scaler)
Driver requires Android API version %1, current is %2 = Driver requires Android API version %1, current is %2
Drivers = Drivers
Enable Cardboard VR = Enable Cardboard VR
FPS = FPS
Frame Rate Control = Framerate control
Expand All @@ -614,6 +619,7 @@ High = High
Hybrid = Hybrid
Hybrid + Bicubic = Hybrid + Bicubic
Ignore camera notch when centering = Ignore camera notch when centering
Install custom driver... = Install custom driver...
Install Custom Driver... = Install Custom Driver...
Integer scale factor = Integer scale factor
Internal Resolution = Internal resolution
Expand Down
6 changes: 6 additions & 0 deletions assets/lang/bg_BG.ini
Expand Up @@ -400,6 +400,7 @@ Log in = Log in
Log out = Log out
Logged in! = Logged in!
Logging in... = Logging in...
More information... = More information...
Move = Преместване
Move Down = Move Down
Move Up = Move Up
Expand Down Expand Up @@ -558,6 +559,7 @@ Use UI background = Use UI background
9x PSP = 9× PSP
10x PSP = 10× PSP
16x = 16×
AdrenoTools driver manager = AdrenoTools driver manager
Aggressive = Aggressive
Alternative Speed = Алтернативна скорост
Alternative Speed 2 = Alternative speed 2 (in %, 0 = unlimited)
Expand Down Expand Up @@ -587,6 +589,7 @@ Copy to texture = Copy to texture
CPU Core = CPU core
Current GPU Driver = Current GPU Driver
Debugging = Debugging
Default GPU driver = Default GPU driver
DefaultCPUClockRequired = Warning: This game requires the CPU clock to be set to default.
Deposterize = Deposterize
Deposterize Tip = Fixes visual banding glitches in upscaled textures
Expand All @@ -597,6 +600,8 @@ Disable culling = Disable culling
Disabled = Disabled
Display Layout && Effects = Display layout && effects
Display Resolution (HW scaler) = Display resolution (HW scaler)
Driver requires Android API version %1, current is %2 = Driver requires Android API version %1, current is %2
Drivers = Drivers
Enable Cardboard VR = Enable Cardboard VR
FPS = Кадри в сек.
Frame Rate Control = Framerate control
Expand All @@ -614,6 +619,7 @@ High = High
Hybrid = Hybrid
Hybrid + Bicubic = Hybrid + Bicubic
Ignore camera notch when centering = Ignore camera notch when centering
Install custom driver... = Install custom driver...
Install Custom Driver... = Install Custom Driver...
Integer scale factor = Integer scale factor
Internal Resolution = Вътрешна резолюция
Expand Down
6 changes: 6 additions & 0 deletions assets/lang/ca_ES.ini
Expand Up @@ -400,6 +400,7 @@ Log in = Log in
Log out = Log out
Logged in! = Logged in!
Logging in... = Logging in...
More information... = More information...
Move = Moure
Move Down = Baixar
Move Up = Pujar
Expand Down Expand Up @@ -558,6 +559,7 @@ Use UI background = Utilitzar imatge de fons de l'interfície d'usuari
9x PSP = PSP ×9
10x PSP = PSP ×10
16x = ×16
AdrenoTools driver manager = AdrenoTools driver manager
Aggressive = Agressiu
Alternative Speed = Velocitat alternativa (%, 0 = il·limitada)
Alternative Speed 2 = Velocitat alternativa 2 (%, 0 = il·limitada)
Expand Down Expand Up @@ -587,6 +589,7 @@ Copy to texture = Copy to texture
CPU Core = Nucli de CPU
Current GPU Driver = Current GPU Driver
Debugging = Depuració
Default GPU driver = Default GPU driver
DefaultCPUClockRequired = AVÍS: Aquest joc requereix rellotge de CPU per defecte.
Deposterize = Deposteritzar
Deposterize Tip = Arregla petits errors a les textures causades per l'escalat
Expand All @@ -597,6 +600,8 @@ Disable culling = Disable culling
Disabled = Desactivat
Display Layout && Effects = Editor de l'àrea de pantalla
Display Resolution (HW scaler) = Resolució de pantalla (escalat per maquinari)
Driver requires Android API version %1, current is %2 = Driver requires Android API version %1, current is %2
Drivers = Drivers
Enable Cardboard VR = Activar Cardboard VR
FPS = FPS
Frame Rate Control = Control de taxa de quadres (FPS)
Expand All @@ -614,6 +619,7 @@ High = Alta
Hybrid = Híbrid
Hybrid + Bicubic = Híbrid i bicúbic
Ignore camera notch when centering = Ignora la notch de la càmera usant el centre d'imatge.
Install custom driver... = Install custom driver...
Install Custom Driver... = Install Custom Driver...
Integer scale factor = Integer scale factor
Internal Resolution = Resolució interna
Expand Down
6 changes: 6 additions & 0 deletions assets/lang/cz_CZ.ini
Expand Up @@ -400,6 +400,7 @@ Log in = Log in
Log out = Log out
Logged in! = Logged in!
Logging in... = Logging in...
More information... = More information...
Move = Přesunout
Move Down = Move Down
Move Up = Move Up
Expand Down Expand Up @@ -558,6 +559,7 @@ Use UI background = Use UI background
9x PSP = 9× PSP
10x PSP = 10× PSP
16x = 16×
AdrenoTools driver manager = AdrenoTools driver manager
Aggressive = Agresivní
Alternative Speed = Alternativní rychlost (v %, 0 = neomezeno)
Alternative Speed 2 = Alternative speed 2 (in %, 0 = unlimited)
Expand Down Expand Up @@ -587,6 +589,7 @@ Copy to texture = Copy to texture
CPU Core = CPU core
Current GPU Driver = Current GPU Driver
Debugging = Ladění
Default GPU driver = Default GPU driver
DefaultCPUClockRequired = Warning: This game requires the CPU clock to be set to default.
Deposterize = Deposterizace
Deposterize Tip = Fixes visual banding glitches in upscaled textures
Expand All @@ -597,6 +600,8 @@ Disable culling = Disable culling
Disabled = Disabled
Display Layout && Effects = Zobrazit editor rozvržení
Display Resolution (HW scaler) = Rozlišení obrazovky (Hardwarové zvětšení)
Driver requires Android API version %1, current is %2 = Driver requires Android API version %1, current is %2
Drivers = Drivers
Enable Cardboard VR = Enable Cardboard VR
FPS = FPS
Frame Rate Control = Kontrola frekvence snímků
Expand All @@ -614,6 +619,7 @@ High = Vysoká
Hybrid = Hybridní
Hybrid + Bicubic = Hybridní + Bikubická
Ignore camera notch when centering = Ignore camera notch when centering
Install custom driver... = Install custom driver...
Install Custom Driver... = Install Custom Driver...
Integer scale factor = Integer scale factor
Internal Resolution = Vnitřní rozlišení
Expand Down
6 changes: 6 additions & 0 deletions assets/lang/da_DK.ini
Expand Up @@ -400,6 +400,7 @@ Log in = Log in
Log out = Log out
Logged in! = Logged in!
Logging in... = Logging in...
More information... = More information...
Move = Flyt
Move Down = Move Down
Move Up = Move Up
Expand Down Expand Up @@ -558,6 +559,7 @@ Use UI background = Brug UI baggrund
9x PSP = 9× PSP
10x PSP = 10× PSP
16x = 16×
AdrenoTools driver manager = AdrenoTools driver manager
Aggressive = Aggressiv
Alternative Speed = Alternativ hastighed (i %, 0 = ubegrænset)
Alternative Speed 2 = Alternative speed 2 (in %, 0 = unlimited)
Expand Down Expand Up @@ -587,6 +589,7 @@ Copy to texture = Copy to texture
CPU Core = CPU core
Current GPU Driver = Current GPU Driver
Debugging = Fejlfinding
Default GPU driver = Default GPU driver
DefaultCPUClockRequired = Warning: This game requires the CPU clock to be set to default.
Deposterize = Deposterize
Deposterize Tip = Retter visuel banding fejl in opskalerede textures
Expand All @@ -597,6 +600,8 @@ Disable culling = Disable culling
Disabled = Disabled
Display Layout && Effects = Display layout && effects
Display Resolution (HW scaler) = Skærmopløsning (HW scaler)
Driver requires Android API version %1, current is %2 = Driver requires Android API version %1, current is %2
Drivers = Drivers
Enable Cardboard VR = Enable Cardboard VR
FPS = FPS
Frame Rate Control = Frameratekontrol
Expand All @@ -614,6 +619,7 @@ High = Høj
Hybrid = Hybrid
Hybrid + Bicubic = Hybrid + Bicubisk
Ignore camera notch when centering = Ignore camera notch when centering
Install custom driver... = Install custom driver...
Install Custom Driver... = Install Custom Driver...
Integer scale factor = Integer scale factor
Internal Resolution = Intern opløsning
Expand Down
6 changes: 6 additions & 0 deletions assets/lang/de_DE.ini
Expand Up @@ -400,6 +400,7 @@ Log in = Log in
Log out = Log out
Logged in! = Logged in!
Logging in... = Logging in...
More information... = More information...
Move = Bewegen
Move Down = Move Down
Move Up = Move Up
Expand Down Expand Up @@ -558,6 +559,7 @@ Use UI background = Benutze UI Hintergrund
9x PSP = 9× PSP
10x PSP = 10× PSP
16x = 16×
AdrenoTools driver manager = AdrenoTools driver manager
Aggressive = Aggressiv
Alternative Speed = Alternative Geschwindigkeit
Alternative Speed 2 = Alternative Geschwindigkeit 2 (in %, 0 = unlimitiert)
Expand Down Expand Up @@ -587,6 +589,7 @@ Copy to texture = Copy to texture
CPU Core = CPU Kern
Current GPU Driver = Current GPU Driver
Debugging = Debugging
Default GPU driver = Default GPU driver
DefaultCPUClockRequired = Warnung: Für dieses Spiel muss die CPU Taktrate auf den Standartwert gestellt sein.
Deposterize = Tonwertverschmelzung
Deposterize Tip = Behebt visuelle Artifakte von hochskalierten Texturen
Expand All @@ -597,6 +600,8 @@ Disable culling = Disable culling
Disabled = Deaktiviert
Display Layout && Effects = Bildschirmlayout Editor
Display Resolution (HW scaler) = Bildschirmauflösung (HW Skalierung)
Driver requires Android API version %1, current is %2 = Driver requires Android API version %1, current is %2
Drivers = Drivers
Enable Cardboard VR = Cardboard VR aktivieren
FPS = FPS
Frame Rate Control = Frameratenkontrolle
Expand All @@ -614,6 +619,7 @@ High = Hoch
Hybrid = Hybrid
Hybrid + Bicubic = Hybrid + Bikubisch
Ignore camera notch when centering = Ignore camera notch when centering
Install custom driver... = Install custom driver...
Install Custom Driver... = Install Custom Driver...
Integer scale factor = Integer scale factor
Internal Resolution = Interne Auflösung
Expand Down
6 changes: 6 additions & 0 deletions assets/lang/dr_ID.ini
Expand Up @@ -400,6 +400,7 @@ Log in = Log in
Log out = Log out
Logged in! = Logged in!
Logging in... = Logging in...
More information... = More information...
Move = Move
Move Down = Move Down
Move Up = Move Up
Expand Down Expand Up @@ -558,6 +559,7 @@ Use UI background = Use UI background
9x PSP = 9× PSP
10x PSP = 10× PSP
16x = 16×
AdrenoTools driver manager = AdrenoTools driver manager
Aggressive = Aggressive
Alternative Speed = Lassi to leko'napa
Alternative Speed 2 = Alternative speed 2 (in %, 0 = unlimited)
Expand Down Expand Up @@ -587,6 +589,7 @@ Copy to texture = Copy to texture
CPU Core = CPU core
Current GPU Driver = Current GPU Driver
Debugging = Debug
Default GPU driver = Default GPU driver
DefaultCPUClockRequired = Warning: This game requires the CPU clock to be set to default.
Deposterize = Deposterize
Deposterize Tip = Fixes visual banding glitches in upscaled textures
Expand All @@ -597,6 +600,8 @@ Disable culling = Disable culling
Disabled = Disabled
Display Layout && Effects = Display layout && effects
Display Resolution (HW scaler) = Display resolution (HW scaler)
Driver requires Android API version %1, current is %2 = Driver requires Android API version %1, current is %2
Drivers = Drivers
Enable Cardboard VR = Enable Cardboard VR
FPS = FPS
Frame Rate Control = Atoro'i FRna
Expand All @@ -614,6 +619,7 @@ High = High
Hybrid = Hybrid
Hybrid + Bicubic = Hybrid + Bicubic
Ignore camera notch when centering = Ignore camera notch when centering
Install custom driver... = Install custom driver...
Install Custom Driver... = Install Custom Driver...
Integer scale factor = Integer scale factor
Internal Resolution = Internal resolution
Expand Down

0 comments on commit cf635fc

Please sign in to comment.