mirror of
https://github.com/marcrobledo/RomPatcher.js.git
synced 2025-06-27 16:25:54 +00:00
Merge pull request #25 from Epicpkmn11/japanese-translation
Add Japanese translation
This commit is contained in:
commit
8475cd3fdf
3 changed files with 30 additions and 0 deletions
|
@ -191,6 +191,7 @@
|
||||||
<option value="ca">Català</option>
|
<option value="ca">Català</option>
|
||||||
<option value="ptb">Português Brasileiro</option>
|
<option value="ptb">Português Brasileiro</option>
|
||||||
<option value="ru">Russian</option>
|
<option value="ru">Russian</option>
|
||||||
|
<option value="ja">日本語</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -183,6 +183,8 @@ function setLanguage(langCode){
|
||||||
|
|
||||||
userLanguage=LOCALIZATION[langCode];
|
userLanguage=LOCALIZATION[langCode];
|
||||||
|
|
||||||
|
document.documentElement.lang = langCode;
|
||||||
|
|
||||||
var translatableElements=document.querySelectorAll('*[data-localize]');
|
var translatableElements=document.querySelectorAll('*[data-localize]');
|
||||||
for(var i=0; i<translatableElements.length; i++){
|
for(var i=0; i<translatableElements.length; i++){
|
||||||
translatableElements[i].innerHTML=_(translatableElements[i].dataset.localize);
|
translatableElements[i].innerHTML=_(translatableElements[i].dataset.localize);
|
||||||
|
|
27
js/locale.js
27
js/locale.js
|
@ -160,5 +160,32 @@ const LOCALIZATION={
|
||||||
'error_unzipping': 'Erro ao extrair arquivo',
|
'error_unzipping': 'Erro ao extrair arquivo',
|
||||||
'error_invalid_patch': 'Patch inválido',
|
'error_invalid_patch': 'Patch inválido',
|
||||||
'warning_too_big': 'Uso de arquivos muito grandes não recomendado.'
|
'warning_too_big': 'Uso de arquivos muito grandes não recomendado.'
|
||||||
|
},
|
||||||
|
'ja':{
|
||||||
|
'creator_mode': '作成モード',
|
||||||
|
|
||||||
|
'apply_patch': 'パッチを当て',
|
||||||
|
'rom_file': 'ROMファィル:',
|
||||||
|
'patch_file': 'パッチファイル:',
|
||||||
|
'remove_header': 'ヘッダーを削除',
|
||||||
|
'add_header': '一時的なヘッダーを追加',
|
||||||
|
'compatible_formats': '互換性のあるフォーマット:',
|
||||||
|
'applying_patch': 'パッチを当ている…',
|
||||||
|
'downloading': 'ダウンロードしている…',
|
||||||
|
'unzipping': '解凍している…',
|
||||||
|
|
||||||
|
'create_patch': 'パッチを作成',
|
||||||
|
'original_rom': '元のROM:',
|
||||||
|
'modified_rom': '変更されたROM:',
|
||||||
|
'patch_type': 'パッチのタイプ:',
|
||||||
|
'creating_patch': 'パッチを作成している…',
|
||||||
|
|
||||||
|
'error_crc_input': 'ソースROMチェックサムの不一致',
|
||||||
|
'error_crc_output': 'ターゲットROMチェクサムの不一致',
|
||||||
|
'error_crc_patch': 'バッチチェックサムの不一致',
|
||||||
|
'error_downloading': 'パッチのダウンロードエラー',
|
||||||
|
'error_unzipping': 'パッチの解凍エラー',
|
||||||
|
'error_invalid_patch': '無効なパッチエラー',
|
||||||
|
'warning_too_big': '大きなファイルの使いはおすすめしない。'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue