Merge pull request #206 from Monter/master

Allowing translation of the "loading..." string from system.js (line 2749)
Update/repair default and EN language files and removing the differences between them
Update PL translation
This commit is contained in:
栽培者 2018-04-11 09:14:23 +08:00 committed by GitHub
commit c62c903b58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 66 additions and 63 deletions

View File

@ -64,8 +64,8 @@ system.defaultLang = {
"system-config": "Config",
"system-reload": "Reload",
"about": "About this app",
"autoreload-disabled": "Auto reload is disabled",
"autoreload-enabled": "Auto reload is enabled",
"autoreload-disabled": "Click to disable auto reload",
"autoreload-enabled": "Click to enable auto reload",
"tracker-replace": "Replace trackers",
"change-download-dir": "Change download location",
"ui-mobile": "Mobile UI",
@ -135,7 +135,7 @@ system.defaultLang = {
"torrent-add": {
"download-dir": "Download Dir:",
"torrent-url": "Torrent URL:",
"tip-torrent-url": "Tip: Please add multiple content with an 'Enter' key press to separate",
"tip-torrent-url": "Tip: Please add multiple content with an 'Enter' key press to separate",
"autostart": "Auto Start:",
"tip-autostart": "",
"set-default-download-dir": "Set as default directory",
@ -149,7 +149,7 @@ system.defaultLang = {
"base": "Base",
"network": "Network",
"limit": "Limit",
"alt-speed": "Scheduled",
"alt-speed": "Alternative speeds",
"dictionary-folders": "Folders Dictionary",
"more": "More"
},
@ -182,10 +182,10 @@ system.defaultLang = {
"peer-limit-per-torrent": "Maximum peers number of torrent:",
"speed-limit-down-enabled": "Max global download speed:",
"speed-limit-up-enabled": "Max global upload speed:",
"alt-speed-enabled": "Use the alt speeds",
"alt-speed-down": "Max global download speed:",
"alt-speed-up": "Max global upload speed:",
"alt-speed-time-enabled": "Use scheduled",
"alt-speed-enabled": "Enable alternative speeds",
"alt-speed-down": "Alternative global download speed:",
"alt-speed-up": "Alternative global upload speed:",
"alt-speed-time-enabled": "Use schedule",
"alt-speed-time": "Time",
"weekday": {
"1": "Monday",
@ -206,7 +206,8 @@ system.defaultLang = {
"saving": "Saving...",
"show-bt-servers": "Show 'BT servers' on Trackers.",
"restore-default-settings": "Restore UI Default Settings",
"language": "Language:"
"language": "Language:",
"loading": "Loading..."
},
"public": {
"button-ok": "OK",
@ -270,7 +271,7 @@ system.defaultLang = {
},
"torrent-attribute-add-tracker": {
"title": "Add Trackers",
"tip": "One Line One Tracker"
"tip": "One Line, One Tracker"
}
},
"torrent": {
@ -285,11 +286,11 @@ system.defaultLang = {
"remainingTime": "Remaining time",
"addedDate": "Date added",
"completeSize": "Complete size",
"rateDownload": "Dowload Rate",
"rateDownload": "Download rate",
"rateUpload": "Upload rate",
"leecherCount": "Leecher",
"seederCount": "Seeder",
"uploadedEver": "Uploaded till date",
"uploadedEver": "Uploaded ever",
"uploadRatio": "Ratio",
"queuePosition": "Queue",
"activityDate": "Activity Date",
@ -381,7 +382,7 @@ system.defaultLang = {
"button-tracker-remove": "Remove Tracker"
},
"other": {
"tracker-remove-confim": "Are you sure you want to remove this Tracker?"
"tracker-remove-confim": "Are you sure want to remove this Tracker?"
}
}
},
@ -392,7 +393,7 @@ system.defaultLang = {
},
"public": {
"text-unknown": "Unknown",
"text-drop-title": "Drag and drop the file in your browser to add to Transmission.",
"text-drop-title": "Drag and drop the file in the region to add to the Transmission.",
"text-saved": "Saved",
"text-nochange": "No change",
"text-info": "Infos",

View File

@ -7,18 +7,18 @@ system.lang = {
"connect":"Connecting...",
"connected":"Connected",
"queue":"Queue:",
"queuefinish":"The queue(s) is finish.",
"notfinal":"Not final",
"checked": "%n data checked: "
"queuefinish":"The queue(s) has finished.",
"notfinal":"Not finalized",
"checked":"%n data checked: "
}
},
"error":{
"data-error":"Data error.",
"data-post-error":"Data post error.",
"data-error":"Error recieving data!",
"data-post-error":"Error posting data!",
"rename-error":"Error renaming file/folder!"
},
"config":{
"save-path":"Download dir"
"save-path":"Download directory"
},
"toolbar":{
"start":"Start",
@ -47,12 +47,12 @@ system.lang = {
"ui-computer":"Desktop UI",
"plugin":"Extensions/plugins",
"rename":"Rename",
"copy-path-to-clipboard": "Copy download location to clipboard",
"copy-path-to-clipboard":"Copy download location to clipboard",
"tip":{
"start":"Start the checked torrents",
"pause":"Pause the checked torrents",
"recheck":"Recheck the checked torrents",
"recheck-confirm":"You sure you want to re-check the selected torrents? This may take some time!",
"recheck-confirm":"Are you sure you want to re-check the selected torrents? This may take some time!",
"start-all":"Start all",
"pause-all":"Pause all",
"remove":"Remove",
@ -64,15 +64,15 @@ system.lang = {
"system-config":"Config",
"system-reload":"Reload",
"about":"About this app",
"autoreload-disabled":"Disabled auto reload",
"autoreload-enabled":"Enabled auto reload",
"autoreload-disabled":"Click to disable auto reload",
"autoreload-enabled":"Click to enable auto reload",
"tracker-replace":"Replace trackers",
"change-download-dir":"Change download location",
"ui-mobile":"Mobile UI",
"ui-original":"Original UI",
"more-peers":"Ask tracker for more peers",
"rename":"Renaming a Torrent's Path",
"copy-path-to-clipboard": "Copy download location to clipboard"
"copy-path-to-clipboard":"Copy download location to clipboard"
}
},
"menus":{
@ -82,8 +82,8 @@ system.lang = {
"move-down":"Move down",
"move-bottom":"Move to bottom"
},
"plugin": {
"auto-match-data-folder": "Automatically matches data directory"
"plugin":{
"auto-match-data-folder":"Automatically matches data directory"
}
},
"title":{
@ -135,13 +135,13 @@ system.lang = {
"torrent-add":{
"download-dir":"Download Dir:",
"torrent-url":"Torrent URL:",
"tip-torrent-url":"TipPlease multiple content with 'Enter' to separate",
"tip-torrent-url":"Tip: Please add multiple content with an 'Enter' key press to separate",
"autostart":"Auto Start:",
"tip-autostart":"",
"set-default-download-dir":"Set as default dir",
"set-default-download-dir":"Set as default directory",
"upload-file":"Torrent file(s):",
"nosource":"No torrent file or URL.",
"tip-title":"Upload the torrent file takes precedence over the torrent URL"
"tip-title":"Uploading the torrent file takes precedence over the torrent URL"
},
"system-config":{
"title":"Server Config",
@ -151,12 +151,12 @@ system.lang = {
"limit":"Limit",
"alt-speed":"Alternative speeds",
"dictionary-folders":"Folders Dictionary",
"more": "More"
"more":"More"
},
"config-dir":"Location of transmission's configuration directory:",
"download-dir":"Default path to download torrents:",
"download-dir-free-space":"Free space: ",
"incomplete-dir-enabled":"Use incomplete dir",
"incomplete-dir-enabled":"Use incomplete directory",
"cache-size-mb":"Disk cache size:",
"rename-partial-files":"Append '.part' to incomplete files",
"start-added-torrents":"Auto start added torrents",
@ -204,9 +204,10 @@ system.lang = {
"minutes":"Minutes",
"nochange":"No change",
"saving":"Saving...",
"show-bt-servers": "Show 'BT servers' on Trackers.",
"restore-default-settings": "Restore UI Default Settings",
"language": "Language:"
"show-bt-servers":"Show 'BT servers' on Trackers.",
"restore-default-settings":"Restore UI Default Settings",
"language":"Language:",
"loading":"Loading..."
},
"public":{
"button-ok":"OK",
@ -220,10 +221,10 @@ system.lang = {
"about":{
"infos":"Authorculturist<br/>StatementMost of the icons used in this program from the network, if any violation of your rights, please contact me delete.",
"check-update":"Check Update",
"home": "Project Home",
"help": "Wiki",
"donate": "Donate",
"pt-plugin": "PT Plugin"
"home":"Project Home",
"help":"Wiki",
"donate":"Donate",
"pt-plugin":"PT Plugin"
},
"torrent-remove":{
"title":"Remove confirm",
@ -255,7 +256,7 @@ system.lang = {
"time-now":"Now:",
"status":"Status:",
"ignore":"Ignore",
"working-close-confirm":"Is working, make sure to close it?",
"working-close-confirm":"Torrents are currently downloading, are sure you want to close Transmission?",
"time-interval":"Time interval (seconds):",
"work-mode-title":"Mode:",
"work-mode":{
@ -263,14 +264,14 @@ system.lang = {
"2":"Individually matched by folder"
}
},
"torrent-rename": {
"torrent-rename":{
"title":"Renaming a Torrent's Path",
"oldname": "Old",
"newname": "New",
"oldname":"Old",
"newname":"New"
},
"torrent-attribute-add-tracker": {
"title": "Add Trackers",
"tip": "One Line, One Tracker"
"torrent-attribute-add-tracker":{
"title":"Add Trackers",
"tip":"One Line, One Tracker"
}
},
"torrent":{
@ -283,17 +284,17 @@ system.lang = {
"status":"Status",
"percentDone":"Percent done",
"remainingTime":"Remaining time",
"addedDate":"Added date",
"addedDate":"Date added",
"completeSize":"Complete size",
"rateDownload":"Rate download",
"rateUpload":"Rate upload",
"rateDownload":"Download rate",
"rateUpload":"Upload rate",
"leecherCount":"Leecher",
"seederCount":"Seeder",
"uploadedEver":"Uploaded ever",
"uploadRatio":"Ratio",
"queuePosition":"Queue",
"activityDate": "Activity Date",
"trackers": "Trackers"
"activityDate":"Activity Date",
"trackers":"Trackers"
},
"status-text":{
"0":"Paused",
@ -368,7 +369,7 @@ system.lang = {
"errorString":"Error string:",
"downloadLimited":"Max global download speed",
"uploadLimited":"Max global upload speed",
"peer-limit":"Maximum peers number of torrent",
"peer-limit":"Maximum peers for this torrent",
"seedRatioMode":"Seed ratio for torrents to use",
"seedIdleMode":"Torrents we're seeding will be stopped if they're idle for this long"
},
@ -376,9 +377,9 @@ system.lang = {
"button-allow":"Download checked file(s)",
"button-deny":"Skip checked file(s)",
"button-priority":"Set priority",
"button-tracker-add": "Add New Tracker",
"button-tracker-edit": "Edit Tracker",
"button-tracker-remove": "Remove Tracker"
"button-tracker-add":"Add New Tracker",
"button-tracker-edit":"Edit Tracker",
"button-tracker-remove":"Remove Tracker"
},
"other":{
"tracker-remove-confim":"Are you sure want to remove this Tracker?"

View File

@ -47,7 +47,7 @@ system.lang = {
,"ui-computer":"Desktop UI"
,"plugin":"Rozszerzenia/wtyczki"
,"rename":"Zmień nazwę"
,"copy-path-to-clipboard": "Skopiuj lokalizację pobierania do schowka"
,"copy-path-to-clipboard": "Skopiuj katalog pobierania do schowka"
,"tip":{
"start":"Pobieraj wybrane torrenty"
,"pause":"Wstrzymaj wybrane torrenty"
@ -72,7 +72,7 @@ system.lang = {
,"ui-original":"Oryginalne UI"
,"more-peers":"Zapytaj tracker o więcej peerów"
,"rename":"Zmiana nazwy katalogu"
,"copy-path-to-clipboard":"Kopiuj lokalizację pobierania do schowka"
,"copy-path-to-clipboard":"Kopiuj katalog pobierania do schowka"
}
}
,"menus":{
@ -207,6 +207,7 @@ system.lang = {
,"show-bt-servers":"Pokazuj serwery BT na liście Trackerów"
,"restore-default-settings":"Przywróć ustawienia domyślne"
,"language":"Język:"
,"loading":"Ładowanie..."
}
,"public":{
"button-ok":"OK"
@ -255,7 +256,7 @@ system.lang = {
,"time-now":"Teraz:"
,"status":"Stan:"
,"ignore":"Ignoruj"
,"working-close-confirm":"Operacja w trakcie, czy na pewno chcesz zamknąć?"
,"working-close-confirm":"Operacja pobierania w trakcie, czy na pewno chcesz ją zatrzymać?"
,"time-interval":"Odstęp czasu (sekundy):"
,"work-mode-title":"Tryb:"
,"work-mode":{
@ -370,7 +371,7 @@ system.lang = {
,"uploadLimited":"Maksymalna prędkość wysyłania"
,"peer-limit":"Maksymalna ilość peerów na torrent"
,"seedRatioMode":"Ratio do wyseedowania dla tego torrenta"
,"seedIdleMode":"Wysyłanie zatrzymanego torrenta, będzie zatrzymane, jeżeli nie będzie wysyłany przez (minut): "
,"seedIdleMode":"Wysyłanie torrenta zostanie zatrzymane, jeżeli nie będzie wysyłany przez (minut): "
}
,"tip":{
"button-allow":"Pobierz sprawdzone pliki"
@ -399,6 +400,6 @@ system.lang = {
,"text-confirm":"Jesteś pewny?"
,"text-browsers-not-support-features":"Ta przeglądarka nie obsługuje tej funkcji!"
,"text-download-update":"Pobierz tę aktualizację"
,"text-have-update":"Aktualizacja jest dostępna"
,"text-have-update":"Dostępna jest aktualizacja"
}
};

View File

@ -93,7 +93,7 @@ c+=f.replace(/[+|\/|=]/g,"0");f=this.panel.left.tree("find",c);var g=transmissio
function(b){return'<a href="'+b+'" target="_blank">'+b+"</a>"})},readConfig:function(){this.readUserConfig();var a=this.getStorageData(this.configHead+".system");if(a)this.config=$.extend(true,this.config,JSON.parse(a));for(var b in this.storageKeys.dictionary)this.dictionary[b]=this.getStorageData(this.storageKeys.dictionary[b])},saveConfig:function(){this.setStorageData(this.configHead+".system",JSON.stringify(this.config));for(var a in this.storageKeys.dictionary)this.setStorageData(this.storageKeys.dictionary[a],
this.dictionary[a]);this.saveUserConfig()},readUserConfig:function(){var a=window.localStorage[this.configHead];if(a){a=JSON.parse(a);this.userConfig=$.extend(true,this.userConfig,a)}},saveUserConfig:function(){window.localStorage[this.configHead]=JSON.stringify(this.userConfig)},uploadTorrentFile:function(a,b,c,d){if(window.FileReader){var e=$("input[id='"+a+"']")[0].files;$.each(e,function(f,g){transmission.addTorrentFromFile(g,b,c,d,e.length)})}else alert(system.lang.publit["text-browsers-not-support-features"])},
checkUpdate:function(){$.ajax({url:this.checkUpdateScript,dataType:"json",success:function(a){if(a&&a.update)if(system.codeupdate<a.update){$("#area-update-infos").show();$("#msg-updateInfos").html(a.update+" -> "+a.infos)}else $("#area-update-infos").hide()}})},changeLanguages:function(a){if(!(a==this.lang.name||!a)){this.config.defaultLang=a;this.saveConfig();location.href="?lang="+a}},getStorageData:function(a,b){return window.localStorage[a]==null?b:window.localStorage[a]},setStorageData:function(a,
b){window.localStorage[a]=b},openDialogFromTemplate:function(a){a=$.extend(true,{id:null,options:null,datas:null},a);if(a.id!=null){var b=a.id,c=a.options,d=a.datas,e=$("#"+b);if(e.length){e.dialog("open");d&&$.each(d,function(f,g){e.data(f,g)});e.dialog({content:system.templates[b]})}else{c=$.extend(true,{title:"",width:100,height:100,resizable:false,cache:true,content:"loading...",modal:true},c);$("<div/>").attr("id",b).appendTo(document.body).dialog(c);$.get(system.rootPath+"template/"+b+".html?time="+
b){window.localStorage[a]=b},openDialogFromTemplate:function(a){a=$.extend(true,{id:null,options:null,datas:null},a);if(a.id!=null){var b=a.id,c=a.options,d=a.datas,e=$("#"+b);if(e.length){e.dialog("open");d&&$.each(d,function(f,g){e.data(f,g)});e.dialog({content:system.templates[b]})}else{c=$.extend(true,{title:"",width:100,height:100,resizable:false,cache:true,content:system.lang.dialog["system-config"].loading,modal:true},c);$("<div/>").attr("id",b).appendTo(document.body).dialog(c);$.get(system.rootPath+"template/"+b+".html?time="+
new Date,function(f){system.templates[b]=f;d&&$.each(d,function(g,h){$("#"+b).data(g,h)});$("#"+b).dialog({content:f})})}}},debug:function(a,b){window.console&&window.console.log&&window.console.log(a,b)},initThemes:function(){this.themes&&$("#select-themes").combobox({groupField:"group",data:this.themes,editable:false,panelHeight:"auto",onChange:function(a){var b=(a+";").split(";"),c=b[0];b=b[1]||"logo.png";$("#styleEasyui").attr("href","tr-web-control/script/easyui/themes/"+c+"/easyui.css");$("#logo").attr("src",
"tr-web-control/"+b);system.config.theme=a;system.saveConfig()},onLoadSuccess:function(){$(this).combobox("setValue",system.config.theme||"default")}})}};$(document).ready(function(){$.getScript(system.rootPath+"lang/default.js");$.getScript(system.rootPath+"lang/_languages.js",function(){system.init(location.search.getQueryString("lang"),location.search.getQueryString("local"))})});
function pagerFilter(a){if(typeof a.length=="number"&&typeof a.splice=="function")a={total:a.length,rows:a};var b=$(this),c=b.datagrid("options"),d=b.datagrid("getPager"),e=b.data("buttons");d.pagination({onSelectPage:function(h,i){c.pageNumber=h;c.pageSize=i;d.pagination("refresh",{pageNumber:h,pageSize:i});b.datagrid("loadData",a)},buttons:e});if(!a.originalRows)a.originalRows=a.rows;var f=(c.pageNumber-1)*parseInt(c.pageSize),g=f+parseInt(c.pageSize);a.rows=a.originalRows.slice(f,g);if(e&&e.length)for(f=

View File

@ -2760,7 +2760,7 @@ var system = {
height: 100,
resizable: false,
cache: true,
content: "loading...",
content: system.lang.dialog["system-config"].loading,
modal: true
};
options = $.extend(true, defaultOptions, options);
@ -2865,4 +2865,4 @@ function pagerFilter(data) {
}
return data;
}
}