forked from siulynot/dexuglygui
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
localization support added, icon fix, send/recieve button color fix,
- Loading branch information
1 parent
f7be60b
commit 21b3e64
Showing
16 changed files
with
216 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"langinfo": { | ||
"name": "English (US)", | ||
"tag": "en_US", | ||
"version": "0.8.0", | ||
"creationDate": "23 Dec 2017", | ||
"author": "Satinder Greawl", | ||
"authorEmail": "satinder@komodoplatform.com" | ||
}, | ||
"loading": { | ||
"starting_barterdex": "Starting BarterDEX. Please wait..." | ||
}, | ||
"login": { | ||
"welcome_to_barterdex": "Welcome to BarterDEX", | ||
"please_login": "Please Login", | ||
"passphrase": "Passphrase", | ||
"login_passphrase_label": "Login", | ||
"login_btn": "Login", | ||
"generate_a_new_passphrase": "Generate a New Passphrase", | ||
"login_passphrase_input_placeholder": "Passphrase" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"langinfo": { | ||
"name": "Hindi (India)", | ||
"tag": "hi_IN", | ||
"version": "0.8.0", | ||
"creationDate": "23 Dec 2017", | ||
"author": "Satinder Greawl", | ||
"authorEmail": "satinder@komodoplatform.com" | ||
}, | ||
"loading": { | ||
"starting_barterdex": "BarterDEX शुरू हो रहा है। कृपया प्रतीक्षा करें..." | ||
}, | ||
"login": { | ||
"welcome_to_barterdex": "BarterDEX में आपका स्वागत है", | ||
"please_login": "कृपया लॉगिन करें", | ||
"passphrase": "पास वाक्यांश", | ||
"login_passphrase_label": "लॉग इन करें", | ||
"login_btn": "लॉग इन करें", | ||
"generate_a_new_passphrase": "एक नया पास वाक्यांश उत्पन्न करें", | ||
"login_passphrase_input_placeholder": "पास वाक्यांश" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"dev": false, | ||
"experimentalFeatures": false, | ||
"theme": "dark" | ||
"theme": "dark", | ||
"deflang": "en_US" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
|
||
function BarterDEXInitLang() { | ||
var barterDEX_settings = ShepherdIPC({"command":"read_settings"}); | ||
console.log(barterDEX_settings.deflang); | ||
if (barterDEX_settings.deflang == undefined) { | ||
ShepherdIPC({"command":"reset_settings"}); | ||
BarterDEXDefaultLangFn('en_US'); | ||
} else { | ||
BarterDEXDefaultLangFn(barterDEX_settings.deflang); | ||
} | ||
} | ||
|
||
function BarterDEXDefaultLangFn(lang_data) { | ||
//console.log(lang_data); | ||
var default_lang = ShepherdIPC({"command":"get_lang_data","lang":lang_data}); | ||
sessionStorage.setItem('mm_default_lang', JSON.stringify(default_lang)); | ||
PopulateDefaultLanguage(); | ||
} | ||
|
||
function PopulateDefaultLanguage() { | ||
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang')); | ||
//console.log(default_lang); | ||
|
||
// Populate loading screen localization | ||
$('.language[data-langstr="starting_barterdex"]').text(default_lang.loading.starting_barterdex); | ||
|
||
// Populate login screen localization | ||
$('.language[data-langstr="Welcome_to_BarterDEX"]').text(default_lang.login.welcome_to_barterdex); | ||
$('.language[data-langstr="please_login"]').text(default_lang.login.please_login); | ||
$('.language[data-langstr="passphrase"]').text(default_lang.login.passphrase); | ||
$('.language[data-langstr="login_passphrase_input_placeholder"]').attr('placeholder',default_lang.login.login_passphrase_input_placeholder); | ||
$('.language[data-langstr="login_btn"]').text(default_lang.login.login_btn); | ||
$('.language[data-langstr="generate_a_new_passphrase"]').text(default_lang.login.generate_a_new_passphrase); | ||
|
||
} | ||
|
||
function GetListofAvailableLocalization() { | ||
//var barterDEX_settings = ShepherdIPC({"command":"read_settings"}); | ||
//console.log(barterDEX_settings.deflang); | ||
|
||
|
||
var BarterDEX_langauge_files_list = ShepherdIPC({"command":"get_lang_file_list"}); | ||
|
||
var langauge_list_options = ''; | ||
$.each(BarterDEX_langauge_files_list, function(index, value) { | ||
//console.log(index); | ||
//console.log(value); | ||
console.log(value.slice(0, -5)); | ||
var temp_lang_code_array = value.split('_'); | ||
var first_word = temp_lang_code_array[0]; | ||
var second_word = temp_lang_code_array[temp_lang_code_array.length-1]; | ||
langauge_list_options += `<option data-content="${GetLanguageName(first_word)} (${GetCountryName(second_word.slice(0, 2))})" data-tokens="${GetLanguageName(first_word)} (${GetCountryName(second_word.slice(0, 2))})">${value.slice(0, -5)}</option>` | ||
}); | ||
//console.log(langauge_list_options); | ||
return langauge_list_options; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.