mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-12 15:38:59 +01:00
![Lioncash](/assets/img/avatar_default.png)
Added an example translation (Japanese). So now the Android version can both display in English and Japanese, depending on what the Android device's system language is set to. Also did a tiny clean-up of InputConfigItem.java so that the parameters are slightly more descriptive. Now, to do a translation in [x] language, all you have to do is take the normal English strings.xml and translate the XML entries into said language, and simply make a folder in the /res/ sub-directory in the form of values-[region code]. IE) With the Japanese translation, it is in the folder /res/values-ja No configuration other than that is needed. After doing the above, the language should load fine on any device when set to that specific system language. By default, if a translation file does not exist for a given system language. The app will automatically fall back to using the English translation. This *should* be bug-free since I did check everything multiple times. But if any issues occur, please report them so that I can fix them.
24 lines
979 B
XML
24 lines
979 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
>
|
|
<PreferenceCategory
|
|
android:summary="@string/settings"
|
|
android:title="@string/cpu_settings"
|
|
android:key="cpuprefcat">
|
|
<CheckBoxPreference
|
|
android:key="dualcorepref"
|
|
android:summary="@string/on_off"
|
|
android:title="@string/dual_core" />
|
|
</PreferenceCategory>
|
|
<PreferenceCategory
|
|
android:summary="@string/settings"
|
|
android:title="@string/video_settings"
|
|
android:key="videoprefcat">
|
|
<ListPreference
|
|
android:entries="@array/gpuOptions"
|
|
android:entryValues="@array/gpuValues"
|
|
android:key="gpupref"
|
|
android:summary="@string/video_backend_to_use"
|
|
android:title="@string/video_backend" />
|
|
</PreferenceCategory>
|
|
</PreferenceScreen> |