diff --git a/index.html b/index.html index a2f813a..2a5f30d 100755 --- a/index.html +++ b/index.html @@ -74,6 +74,7 @@ + @@ -86,7 +87,7 @@
@@ -586,8 +587,8 @@
  •   {{download.connections}}{{download.numSeeders}}
  •   {{download.gid}}
  • -
  • # of   {{download.numPieces}}
  • -
  • Length  {{download.fmtPieceLength}}
  • +
  • {{ '# of' | translate }}   {{download.numPieces}}
  • +
  • {{ 'Length' | translate }}  {{download.fmtPieceLength}}
  •   {{download.dir}}
  • -
    +
    @@ -720,12 +714,12 @@ http://ex1.com/f2.mp4 http://ex2.com/f2.mp4 --out=file2.mp4
    {{ 'Select Torrents' | translate }}

    - - Select the torrent from the local filesystem to start the download.
    - - You can select multiple torrents to start multiple downloads
    - - To add a magnet torrent url, use the add url option and add it there. + {{ '- Select the torrent from the local filesystem to start the download.' | translate }}
    + {{ '- You can select multiple torrents to start multiple downloads.' | translate }}
    + {{ '- To add a BitTorrent-Magnet URL, use the add URI option and add it there.' | translate }}

    - +
    @@ -745,7 +739,7 @@ http://ex1.com/f2.mp4 http://ex2.com/f2.mp4 --out=file2.mp4
    -
    +
    @@ -788,11 +782,11 @@ http://ex1.com/f2.mp4 http://ex2.com/f2.mp4 --out=file2.mp4
    {{ 'Select Metalinks' | translate }}

    - - Select the metalink from the local filesystem to start the download.
    - - You can select multiple metalinks to start multiple downloads + {{ '- Select the Metalink from the local filesystem to start the download.' | translate }}
    + {{ '- You can select multiple Metalinks to start multiple downloads.' | translate }}

    - +
    @@ -812,7 +806,7 @@ http://ex1.com/f2.mp4 http://ex2.com/f2.mp4 --out=file2.mp4
    -
    +
    @@ -863,15 +857,15 @@ http://ex1.com/f2.mp4 http://ex2.com/f2.mp4 --out=file2.mp4 {{file.relpath}} -

    +

    @@ -896,7 +890,7 @@ http://ex1.com/f2.mp4 http://ex2.com/f2.mp4 --out=file2.mp4

    {{set.desc}}

    @@ -924,7 +918,7 @@ http://ex1.com/f2.mp4 http://ex2.com/f2.mp4 --out=file2.mp4
    {{ 'Aria2 RPC host and port' | translate }}
    - +
    http(s):// @@ -932,26 +926,24 @@ http://ex1.com/f2.mp4 http://ex2.com/f2.mp4 --out=file2.mp4 ng-model="connection.conf.host"/>

    - Enter the ip or dns name of the server on which the - rpc for aria2 is running (default = localhost) + {{ 'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)' | translate }}

    - +

    - Enter the port of the server on which the rpc for - aria2 is running (default = 6800) + {{ 'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)' | translate }}

    - +
    http(s)://{{connection.conf.host + ':' + connection.conf.port}} @@ -959,55 +951,53 @@ http://ex1.com/f2.mp4 http://ex2.com/f2.mp4 --out=file2.mp4 ng-model="connection.conf.path"/>

    - Enter path for the aria2 rpc endpoint (default = /jsonrpc) + {{ 'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)' | translate }}

    - +
    - +
    - +

    - Enter the aria2 RPC username - (empty if authentication not enabled) + {{ 'Enter the Aria2 RPC username (empty if authentication not enabled)' | translate }}

    - +

    - Enter the aria2 RPC password - (empty if authentication not enabled) + {{ 'Enter the Aria2 RPC password (empty if authentication not enabled)' | translate }}

    @@ -1016,13 +1006,13 @@ http://ex1.com/f2.mp4 http://ex2.com/f2.mp4 --out=file2.mp4
    {{ 'Direct Download' | translate }}
    - +

    - If supplied, links will be created to enable direct download from the - aria2 server, requires appropriate webserver to be configured + {{ 'If supplied, links will be created to enable direct download from the Aria2 server.' | translate }}
    + (( '(Requires an appropriate webserver to be configured.)' | translate }}

    @@ -1046,9 +1036,9 @@ http://ex1.com/f2.mp4 http://ex2.com/f2.mp4 --out=file2.mp4

    {{ 'Aria2 server info' | translate }}

    diff --git a/js/init.js b/js/init.js index 73c4cf2..f30168a 100755 --- a/js/init.js +++ b/js/init.js @@ -15,6 +15,7 @@ var webui = angular.module('webui', [ webui.config(['$translateProvider', function ($translateProvider) { $translateProvider + .translations('nl_NL', translations.nl_NL) .translations('th_TH', translations.th_TH) .translations('zh_CN', translations.zh_CN) .determinePreferredLanguage(); diff --git a/js/translate/nl_NL.js b/js/translate/nl_NL.js new file mode 100644 index 0000000..902704c --- /dev/null +++ b/js/translate/nl_NL.js @@ -0,0 +1,119 @@ +if(typeof translations == 'undefined'){ + translations = {}; +} + +translations.nl_NL = { +// header + 'Search': 'Zoeken', + // Nav menu + 'Add': 'Toevoegen', + 'By URIs': 'met URI', + 'By Torrents': 'met Torrents', + 'By Metalinks': 'met Metalinks', + 'Manage': 'Beheren', + 'Pause All': 'Alles pauzeren', + 'Resume Paused': 'Hervatten', + 'Purge Completed': 'Verwijder de voleindigden', + 'Settings': 'Instellingen', + 'Connection Settings': 'Verbindingsinstellingen', + 'Global Settings': 'Globale instellingen', + 'Server info': 'Informatie over de server', + 'About and contribute': 'Over het project en bijdragen', + 'Toggle navigation': 'Navigatie omschakelen', +// body +// nav side bar + 'Miscellaneous': 'Overig', + 'Global Statistics': 'Globale statistieken', + 'About': 'Over het project', + 'Displaying': '', // empty because of grammar in the following 2 elements + 'of': 'van', + 'downloads': 'downloads weergegeven', +// download filters + 'Download Filters': 'Download filters', + 'Running': 'Bezig', + 'Active': 'Actief', + 'Waiting': 'Wachtend', + 'Complete': 'Voleindigd', + 'Error': 'Foutief', + 'Paused': 'Gepauzeerd', + 'Removed': 'Verwijderd', + 'Hide linked meta-data': 'Gekoppelde metadata verbergen', + 'Toggle': 'Omschakelen', + 'Reset filters': 'Filters terugzetten', +// starred properties + 'Quick Access Settings': 'Snelle-toegang instellingen', + 'Save settings': 'Instellingen opslaan', + 'Currently no download in line to display, use the': 'Momenteel geen downloads weer te geven, gebruik de ', + 'download button to start downloading files!': 'knop om bestanden te gaan downloaden!', + 'Peers': 'Peers', + 'More Info': 'Meer informatie', + 'Remove': 'Verwijderen', + '# of': 'Aantal', + 'Length': 'Lengte', +// modals + 'Add Downloads By URIs': 'Downloads toevoegen met URI', + '- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': + '- Je kunt meerdere downloads (bestanden) tezelfdertijd toevoegen door de URIs voor elk bestand op een aparte regel te zetten.', + '- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': + '- Je kunt ook meerdere URIs (mirrors) voor *hetzelfde* bestand toevoegen. Scheidt hiervoor de URIs met een spatie.', + '- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- Een URI kan HTTP(S)/FTP/BitTorrent-Magnet zijn.', + 'E.g. to add 2 files (downloads) f1.jpg and f2.mp4 with 2 URIs (mirrors) each, add URIs as follows': + 'Bijvoorbeeld, voor het toevoegen van 2 bestanden (downloads) f1.jpg en f2.mp4 met 2 URIs (mirrors) elk, voeg de URIs op deze manier:', + 'Download settings': 'Download instellingen', + 'Advanced settings': 'Geavanceerde instellingen', + 'Cancel': 'Annuleren', + 'Start': 'Starten', + 'Choose': 'Kiezen', + 'Quick Access (shown on the main page)': 'Snelle toegang (op de hoofdpagina)', +// add torrent modal + 'Add Downloads By Torrents': 'Downloads toevoegen met torrents', + '- Select the torrent from the local filesystem to start the download.': '- Selecteer de torrent van het locale bestandssysteem om de download te starten.', + '- You can select multiple torrents to start multiple downloads.': '- Je kunt meerdere torrents selecteren voor meerdere downloads.', + '- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': '- Om een BitTorrent-Magnet URL toe te voegen, gebruik de Toevoegen met URI optie, en voeg het daar toe.', + 'Select Torrents': 'Selecteer torrents', + 'Select a Torrent': 'Selecteer een torrent', +// add metalink modal + 'Add Downloads By Metalinks': 'Download toevoegen met Metalinks', + 'Select Metalinks': 'Selecteer Metalinks', + '- Select the Metalink from the local filesystem to start the download.': '- Selecteer de Metalink van het locale bestandssysteem om de download te starten.', + '- You can select multiple Metalinks to start multiple downloads.': '- Selecter meerdere Metalinks om meerdere downloads te starten.', + 'Select a Metalink': 'Selecteer een Metalink', +// select file modal + 'Choose files to start download for': 'Bestanden kiezen waarvoor het downloaden beginnen moet', + 'Select to download': 'Selecteer om te downloaden', +// settings modal + 'Aria2 RPC host and port': 'Aria2 RPC server en poort', + 'Enter the host': 'Server invoeren', + 'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': + 'Voer de IP of DNS naam van de server waarop de RPC van Aria2 loopt (standaard: localhost)', + 'Enter the port': 'Poort invoeren', + 'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': + 'Invoeren van de serverpoort waarop de RPC van Aria2 loopt (standaard: 6800)', + 'Enter the RPC path': 'Invoeren van het RPC pad', + 'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Invoeren van het eindpunt van het Aria2 RPC pad (standaard: /jsonrpc)', + 'SSL/TLS encryption': 'SSL/TLS versleuteling', + 'Enable SSL/TLS encryption': 'SSL/TLS versleuteling inschakelen', + 'Enter the secret token (optional)': 'Invoeren van het wachtwoord (facultatief)', + 'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': + 'Invoeren van het Aria2 RPC wachtwoord (niet invullen als authenticatie niet is ingeschakeld)', + 'Enter the username (optional)': 'Invoeren van de gebruikersnaam (facultatief)', + 'Enter the Aria2 RPC username (empty if authentication not enabled)': + 'Invoeren van de Aria2 RPC gebruikersnaam (niet invullen als authenticatie niet is ingeschakeld)', + 'Enter the password (optional)': 'Invoeren van het wachtwoord (facultatief)', + 'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Invoeren van het Aria2 RPC wachtwoord (niet invullen als authenticatie niet is ingeschakeld)', + 'Enter base URL (optional)': 'Invoeren van de basis URL (facultatief)', + 'Direct Download': 'Direct downloaden', + 'If supplied, links will be created to enable direct download from the Aria2 server.': + 'Als ingevoerd dan worden links aangemaakt die het direct downloaden van de Aria2 server toestaan.', + '(Requires appropriate webserver to be configurured.)': 'Hiervoor moet een geschikte webserver worden ingericht.)', + 'Save Connection configuration': 'Verbindingsconfiguratie opslaan', +// server info modal + 'Aria2 server info': 'Aria2 server informatie', + 'Aria2 Version': 'Aria2 versie', + 'Features Enabled': 'Geactiveerde kenmerken', +// about modal + 'To download the latest version of the project, add issues or to contribute back, head on to': + 'Om de nieuwste versie van het project te downloaden, problemen te rapporteren of bij te dragen, ga naar', + 'Or you can open the latest version in the browser through': 'Of je kunt hier de nieuwste versie in je browser openen', + 'Close': 'Afsluiten', +}; \ No newline at end of file diff --git a/js/translate/template.js b/js/translate/template.js index 0948165..90ed197 100644 --- a/js/translate/template.js +++ b/js/translate/template.js @@ -30,9 +30,12 @@ translations.en_US = { // replace en_US to ll_CC, examples: zh_CN, de_AT. 'Global Settings': '', 'Server info': '', 'About and contribute': '', + 'Toggle navigation': '', // body // nav side bar + 'Miscellaneous': '', 'Global Statistics': '', + 'About': '', 'Displaying': '', 'of': '', 'downloads': '', @@ -51,44 +54,77 @@ translations.en_US = { // replace en_US to ll_CC, examples: zh_CN, de_AT. // starred properties 'Quick Access Settings': '', 'Save settings': '', + 'Currently no download in line to display, use the': '', + 'download button to start downloading files!': '', + 'Peers': '', + 'More Info': '', + 'Remove': '', + '# of': '', + 'Length': '', // modals 'Add Downloads By URIs': '', + '- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': + '', + '- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': + '', + '- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '', + 'E.g. to add 2 files (downloads) f1.jpg and f2.mp4 with 2 URIs (mirrors) each, add URIs as follows': + '', 'Download settings': '', 'Advanced settings': '', 'Cancel': '', 'Start': '', + 'Choose': '', + 'Quick Access (shown on the main page)': '', // add torrent modal 'Add Downloads By Torrents': '', + '- Select the torrent from the local filesystem to start the download.': '', + '- You can select multiple torrents to start multiple downloads.': '', + '- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': '', 'Select Torrents': '', - 'Select a Torrent:': '', - //'Download settings': '', // repeated - //'Advanced settings': '', - //'Cancel': '', - //'Start': '', + 'Select a Torrent': '', // add metalink modal 'Add Downloads By Metalinks': '', 'Select Metalinks': '', - 'Select a Metalinks:': '', - //'Download settings': '', - //'Advanced settings': '', - //'Cancel': '', - //'Start': '', + '- Select the Metalink from the local filesystem to start the download.': '', + '- You can select multiple Metalinks to start multiple downloads.': '', + 'Select a Metalink': '', // select file modal 'Choose files to start download for': '', 'Select to download': '', // settings modal - //'Cancel': '', - //'Connection Settings': '', 'Aria2 RPC host and port': '', - 'Enter the host:': '', - 'Enter the port:': '', + 'Enter the host': '', + 'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': + '', + 'Enter the port': '', + 'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': + '', + 'Enter the RPC path': '', + 'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': '', + 'SSL/TLS encryption': '', + 'Enable SSL/TLS encryption': '', + 'Enter the secret token (optional)': '', + 'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': + '', + 'Enter the username (optional)': '', + 'Enter the Aria2 RPC username (empty if authentication not enabled)': + '', + 'Enter the password (optional)': '', + 'Enter the Aria2 RPC password (empty if authentication not enabled)': '', + 'Enter base URL (optional)': '', 'Direct Download': '', - //'Cancel': '', + 'If supplied, links will be created to enable direct download from the Aria2 server.': + '', + '(Requires appropriate webserver to be configured.)': '', 'Save Connection configuration': '', // server info modal 'Aria2 server info': '', - 'Close': '' + 'Aria2 Version': '', + 'Features Enabled': '', // about modal - //'About and contribute': '', - //'Close': '', + 'To download the latest version of the project, add issues or to contribute back, head on to': + '', + 'Or you can open the latest version in the browser through': '', + 'Close': '' }; \ No newline at end of file diff --git a/js/translate/th_TH.js b/js/translate/th_TH.js index 1a2ef08..79e5ac8 100644 --- a/js/translate/th_TH.js +++ b/js/translate/th_TH.js @@ -19,9 +19,12 @@ translations.th_TH = { 'Global Settings': 'ตั้งค่าทั่วไป', 'Server info': 'ข้อมูลเซอร์เวอร์', 'About and contribute': 'เกี่ยวกับและช่วย', + 'Toggle navigation': 'สลับนำทาง', // body // nav side bar + 'Miscellaneous': 'เบ็ดเตล็ด', 'Global Statistics': 'สถิติทั่วไป', + 'About': 'เกี่ยวกับ', 'Displaying': 'แแสดงดาวน์โหลด', 'of': 'อันใน', 'downloads': 'อันทั้งหมด', @@ -40,44 +43,77 @@ translations.th_TH = { // starred properties 'Quick Access Settings': 'ตั้งค่าอย่างรวดเร็ว', 'Save settings': 'บันทึกการตั้งค่า', + 'Currently no download in line to display, use the': 'ตอนนี้ไม่มีการดาวน์โหลดที่แสดงได้ ก็ใช้ปุ่ม', + 'download button to start downloading files!': 'ให้เริ่มดาวน์โหลดไฟล์', + 'Peers': 'พีร์ส', + 'More Info': 'ข้อมูลเพิ่ม', + 'Remove': 'ลบ', + '# of': 'จำนวน', + 'Length': 'ความยาว', // modals 'Add Downloads By URIs': 'เพิ่มดาวน์โหลดด้วยยูอาร์ไอ', + '- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': + '', + '- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': + '', + '- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '', + 'E.g. to add 2 files (downloads) f1.jpg and f2.mp4 with 2 URIs (mirrors) each, add URIs as follows': + '', 'Download settings': 'ตั้งค่าการดาวน์โหลด', 'Advanced settings': 'ตั้งค่าขั้นสูง', 'Cancel': 'ยกเลิก', 'Start': 'เริ่มต้น', + 'Choose': 'เลือก', + 'Quick Access (shown on the main page)': 'ใช้งานอย่างรวดเร็ว (แสดงที่เพจหลัก)', // add torrent modal 'Add Downloads By Torrents': 'เพิ่มดาวน์โหลดด้วยทอร์เรนต์', + '- Select the torrent from the local filesystem to start the download.': '', + '- You can select multiple torrents to start multiple downloads.': '', + '- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': '', 'Select Torrents': 'เลือกทอร์เรนต์', - 'Select a Torrent:': 'เลือกทอร์เรนต์', - //'Download settings': '', - //'Advanced settings': '', - //'Cancel': '', - //'Start': '', + 'Select a Torrent': 'เลือกทอร์เรนต์', // add metalink modal 'Add Downloads By Metalinks': 'เพิ่มดาวน์โหลดด้วยเมทาลิงค์', 'Select Metalinks': 'เลือกเมทาลิงค์', - 'Select a Metalinks:': 'เลือกเมทาลิงค์', - //'Download settings': '', - //'Advanced settings': '', - //'Cancel': '', - //'Start': '', + '- Select the Metalink from the local filesystem to start the download.': '', + '- You can select multiple Metalinks to start multiple downloads.': '', + 'Select a Metalink': 'เลือกเมทาลิงค์', // select file modal 'Choose files to start download for': 'เลือกไฟล์ที่จะเริ่มดาวน์โหลด', 'Select to download': 'เลือกให้ดาวน์โหลด', // settings modal - //'Cancel': '', - //'Connection Settings': '', 'Aria2 RPC host and port': 'โฮสต์และพอร์ตของ Aria2 RPC', - 'Enter the host:': 'กรอกโฮสต์', - 'Enter the port:': 'กรอกพอร์ต', + 'Enter the host': 'ป้อนโฮสต์', + 'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': + '', + 'Enter the port': 'ป้อนพอร์ต', + 'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': + '', + 'Enter the RPC path': 'ป้อนเส้นทาง RPC', + 'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': '', + 'SSL/TLS encryption': 'การเข้ารหัสลับ SSL/TLS', + 'Enable SSL/TLS encryption': 'เปิดใช้การเข้ารหัสลับ SSL/TLS', + 'Enter the secret token (optional)': 'ป้อนสัญลักษณ์ความลับ (เป็นตัวเลือก)', + 'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': + '', + 'Enter the username (optional)': 'ป้อนเชื่อ (เป็นตัวเลือก)', + 'Enter the Aria2 RPC username (empty if authentication not enabled)': + '', + 'Enter the password (optional)': 'ป้อนรหัสผ่าน (เป็นตัวเลือก)', + 'Enter the Aria2 RPC password (empty if authentication not enabled)': '', + 'Enter base URL (optional)': 'ป้อน URL หลัก (เป็นตัวเลือก)', 'Direct Download': 'ดาวน์โหลดโดยตรง', - //'Cancel': '', - 'Save Connection configuration': '', + 'If supplied, links will be created to enable direct download from the Aria2 server.': + '', + '(Requires appropriate webserver to be configured.)': '', + 'Save Connection configuration': 'บันทึกการตั้งค่าการเชื่อมต่อ', // server info modal 'Aria2 server info': 'ข้อมูลเซอร์เวอร์ Aria2', - 'Close': 'ปิด' + 'Aria2 Version': 'รุ่น Aria2', + 'Features Enabled': 'คุณสมบัติที่เปิดใช้งาน', // about modal - //'About and contribute': '', - //'Close': '', + 'To download the latest version of the project, add issues or to contribute back, head on to': + 'ให้ดาวน์โหลดรุ่นสุดท้ายของโครงการ เพิ่มปัญหา หรือช่วยเหลือมีส่วนร่วม ไปสู่', + 'Or you can open the latest version in the browser through': 'หรือเปิดรุ่นสุดท้ายในเบราว์เซอร์โดยใช้', + 'Close': 'ปิด' }; \ No newline at end of file diff --git a/js/translate/zh_CN.js b/js/translate/zh_CN.js index e915a51..972d892 100644 --- a/js/translate/zh_CN.js +++ b/js/translate/zh_CN.js @@ -45,35 +45,22 @@ translations.zh_CN = { // add torrent modal 'Add Downloads By Torrents': '使用种子下载', 'Select Torrents': '选择种子文件', - 'Select a Torrent:': '选择种子文件', - //'Download settings': '', - //'Advanced settings': '', - //'Cancel': '', - //'Start': '', + 'Select a Torrent': '选择种子文件', // add metalink modal 'Add Downloads By Metalinks': '使用磁链下载', 'Select Metalinks': '选择磁链文件', - 'Select a Metalinks:': '选择磁链文件', - //'Download settings': '', - //'Advanced settings': '', - //'Cancel': '', - //'Start': '', + 'Select a Metalink': '选择磁链文件', // select file modal 'Choose files to start download for': '选择文件开始下载', 'Select to download': '选择下载', // settings modal - //'Cancel': '', - //'Connection Settings': '', 'Aria2 RPC host and port': 'Aria2 RPC 主机和端口', - 'Enter the host:': '主机', - 'Enter the port:': '端口', + 'Enter the host': '主机', + 'Enter the port': '端口', 'Direct Download': '直接下载', - //'Cancel': '', 'Save Connection configuration': '保存网络配置', // server info modal 'Aria2 server info': 'Aria2 服务器信息', 'Close': '关闭' // about modal - //'About and contribute': '', - //'Close': '', }; \ No newline at end of file