Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to using standard Lazarus translation facilities #11

Draft
wants to merge 23 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
9120563
enable
lighterowl Mar 18, 2023
d16e9e6
update
lighterowl Mar 18, 2023
75c6d28
"po" is more standardised imho
lighterowl Mar 18, 2023
cb41794
create a tool for converting from custom transgui translation files t…
lighterowl Mar 18, 2023
4709146
some fixes + converted .lang to .po files
lighterowl Mar 21, 2023
71b1d87
[ci skip] perltidy
lighterowl Mar 21, 2023
5576aaf
remove lang files
lighterowl Mar 21, 2023
ebe5945
[ci skip] this should not be here
lighterowl Mar 21, 2023
15678a4
Merge remote-tracking branch 'fork/master' into lazarus-i18n
lighterowl Mar 28, 2023
4e34b0a
Merge remote-tracking branch 'fork/master' into lazarus-i18n
lighterowl Apr 1, 2023
44aa86c
Merge remote-tracking branch 'fork/master' into lazarus-i18n
lighterowl Apr 2, 2023
c4fb298
save unknown strings after all too so they can be potentially picked …
lighterowl Apr 2, 2023
a2dd640
Merge remote-tracking branch 'fork/master' into lazarus-i18n
lighterowl Apr 10, 2023
a7c9320
Merge remote-tracking branch 'fork/master' into lazarus-i18n
lighterowl Apr 10, 2023
1595f50
Merge remote-tracking branch 'fork/master' into lazarus-i18n
lighterowl May 8, 2023
efe90a7
Merge remote-tracking branch 'fork/master' into lazarus-i18n
lighterowl May 21, 2023
d7e9340
Merge remote-tracking branch 'fork/master' into lazarus-i18n
lighterowl May 21, 2023
e2ae822
Merge remote-tracking branch 'fork/master' into lazarus-i18n
lighterowl May 25, 2023
d4213c0
Merge remote-tracking branch 'fork/master' into lazarus-i18n
lighterowl Jul 28, 2023
76209f1
Merge remote-tracking branch 'fork/master' into lazarus-i18n
lighterowl Aug 4, 2023
032619b
Merge remote-tracking branch 'origin/master' into lazarus-i18n
lighterowl Dec 4, 2023
729c538
what the hell is this doing here
lighterowl Dec 7, 2023
d9c2a7e
Merge remote-tracking branch 'origin/develop' into lazarus-i18n
lighterowl Sep 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/build_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ lazbuild --build-mode=Release --lazarusdir=${sdk_dir}\lazarus transgui.lpi

mkdir Release
Copy-Item "units\transgui.exe" -Destination Release
Copy-Item lang Release -Recurse -Exclude '*.template'
Copy-Item "${openssl}\bin\lib*-3.dll" Release

cd Release
Expand Down
3 changes: 1 addition & 2 deletions .github/package_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readonly macosx_dir='./.github/macosx'

readonly appfolder="${dmgfolder}/${appname}.app"

mkdir -p "$appfolder/Contents/MacOS/lang"
mkdir -p "$appfolder/Contents/MacOS"
mkdir -p "$appfolder/Contents/Resources"

for i in libcrypto.3.dylib libssl.3.dylib transgui; do
Expand All @@ -19,7 +19,6 @@ for i in libcrypto.3.dylib libssl.3.dylib transgui; do
chmod +x "$appfolder/Contents/MacOS/$i"
done

cp lang/transgui.* "$appfolder/Contents/MacOS/lang"
cp "${macosx_dir}/PkgInfo" "${appfolder}/Contents"
cp "${macosx_dir}/transgui.icns" "${appfolder}/Contents/Resources"
sed -e "s/@prog_ver@/$prog_ver/" "${macosx_dir}/Info.plist" > "${appfolder}/Contents/Info.plist"
Expand Down
10 changes: 10 additions & 0 deletions about.lrj
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{"version":1,"strings":[
{"hash":4691652,"name":"taboutform.caption","sourcebytes":[65,98,111,117,116],"value":"About"},
{"hash":4691652,"name":"taboutform.tababout.caption","sourcebytes":[65,98,111,117,116],"value":"About"},
{"hash":141901301,"name":"taboutform.txappname.caption","sourcebytes":[116,120,65,112,112,78,97,109,101],"value":"txAppName"},
{"hash":86455920,"name":"taboutform.txauthor.caption","sourcebytes":[67,111,112,121,114,105,103,104,116,32,40,99,41,32,50,48,48,56,45,50,48,49,57,32,98,121,32,89,117,114,121,32,83,105,100,111,114,111,118,32,97,110,100,32,84,114,97,110,115,109,105,115,115,105,111,110,32,82,101,109,111,116,101,32,71,85,73,32,119,111,114,107,105,110,103,32,103,114,111,117,112],"value":"Copyright (c) 2008-2019 by Yury Sidorov and Transmission Remote GUI working group"},
{"hash":167890515,"name":"taboutform.txversion.caption","sourcebytes":[86,101,114,115,105,111,110,32,37,115],"value":"Version %s"},
{"hash":58140853,"name":"taboutform.txhomepage.caption","sourcebytes":[72,111,109,101,32,112,97,103,101],"value":"Home page"},
{"hash":167890515,"name":"taboutform.txversfpc.caption","sourcebytes":[86,101,114,115,105,111,110,32,37,115],"value":"Version %s"},
{"hash":49923525,"name":"taboutform.tablicense.caption","sourcebytes":[76,105,99,101,110,115,101],"value":"License"}
]}
4 changes: 4 additions & 0 deletions addlink.lrj
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{"version":1,"strings":[
{"hash":47566507,"name":"taddlinkform.caption","sourcebytes":[65,100,100,32,116,111,114,114,101,110,116,32,108,105,110,107],"value":"Add torrent link"},
{"hash":241104202,"name":"taddlinkform.txlink.caption","sourcebytes":[85,82,76,32,111,102,32,97,32,46,116,111,114,114,101,110,116,32,102,105,108,101,32,111,114,32,97,32,109,97,103,110,101,116,32,108,105,110,107,58],"value":"URL of a .torrent file or a magnet link:"}
]}
20 changes: 20 additions & 0 deletions addtorrent.lrj
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{"version":1,"strings":[
{"hash":220006020,"name":"taddtorrentform.caption","sourcebytes":[65,100,100,32,110,101,119,32,116,111,114,114,101,110,116],"value":"Add new torrent"},
{"hash":32,"name":"taddtorrentform.gbsaveas.caption","sourcebytes":[32],"value":" "},
{"hash":256138298,"name":"taddtorrentform.txdestfolder.caption","sourcebytes":[68,101,115,116,105,110,97,116,105,111,110,32,102,111,108,100,101,114,58],"value":"Destination folder:"},
{"hash":125475898,"name":"taddtorrentform.txpeerlimit.caption","sourcebytes":[80,101,101,114,32,108,105,109,105,116,58],"value":"Peer limit:"},
{"hash":258262002,"name":"taddtorrentform.btbrowse.hint","sourcebytes":[66,114,111,119,115,101,32,102,111,108,100,101,114],"value":"Browse folder"},
{"hash":115952286,"name":"taddtorrentform.btbrowse.caption","sourcebytes":[66,114,111,119,115,101,46,46,46],"value":"Browse..."},
{"hash":147287546,"name":"taddtorrentform.txsaveas.caption","sourcebytes":[83,97,118,101,32,97,115,58],"value":"Save as:"},
{"hash":263475366,"name":"taddtorrentform.edextension.hint","sourcebytes":[102,111,114,32,101,120,97,109,112,108,101,58,32,42,46,97,118,105,32,42,46,109,107,118],"value":"for example: *.avi *.mkv"},
{"hash":263475366,"name":"taddtorrentform.txsaveas1.hint","sourcebytes":[102,111,114,32,101,120,97,109,112,108,101,58,32,42,46,97,118,105,32,42,46,109,107,118],"value":"for example: *.avi *.mkv"},
{"hash":47204432,"name":"taddtorrentform.txsaveas1.caption","sourcebytes":[84,101,109,112,108,97,116,101,58,32,32],"value":"Template: "},
{"hash":238193682,"name":"taddtorrentform.delbutton.hint","sourcebytes":[68,101,108,101,116,101,32,100,101,115,116,105,110,97,116,105,111,110,32,102,111,108,100,101,114],"value":"Delete destination folder"},
{"hash":245003683,"name":"taddtorrentform.gbcontents.caption","sourcebytes":[84,111,114,114,101,110,116,32,99,111,110,116,101,110,116,115],"value":"Torrent contents"},
{"hash":13215978,"name":"taddtorrentform.txdiskspace.caption","sourcebytes":[70,114,101,101,32,100,105,115,107,32,115,112,97,99,101,58],"value":"Free disk space:"},
{"hash":41356085,"name":"taddtorrentform.lvfiles.columns[0].title.caption","sourcebytes":[70,105,108,101,32,110,97,109,101],"value":"File name"},
{"hash":368901,"name":"taddtorrentform.lvfiles.columns[1].title.caption","sourcebytes":[83,105,122,101],"value":"Size"},
{"hash":195296268,"name":"taddtorrentform.btselectall.caption","sourcebytes":[83,101,108,101,99,116,32,97,108,108],"value":"Select all"},
{"hash":172005621,"name":"taddtorrentform.btselectnone.caption","sourcebytes":[83,101,108,101,99,116,32,110,111,110,101],"value":"Select none"},
{"hash":29433460,"name":"taddtorrentform.cbstarttorrent.caption","sourcebytes":[83,116,97,114,116,32,116,111,114,114,101,110,116],"value":"Start torrent"}
]}
4 changes: 4 additions & 0 deletions addtracker.lrj
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{"version":1,"strings":[
{"hash":197150642,"name":"taddtrackerform.caption","sourcebytes":[65,100,100,32,116,114,97,99,107,101,114],"value":"Add tracker"},
{"hash":142824282,"name":"taddtrackerform.txtrackerurl.caption","sourcebytes":[84,114,97,99,107,101,114,32,97,110,110,111,117,110,99,101,32,85,82,76,58],"value":"Tracker announce URL:"}
]}
5 changes: 5 additions & 0 deletions colsetup.lrj
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{"version":1,"strings":[
{"hash":253366224,"name":"tcolsetupform.caption","sourcebytes":[67,111,108,117,109,110,115,32,115,101,116,117,112],"value":"Columns setup"},
{"hash":1472,"name":"tcolsetupform.btup.caption","sourcebytes":[85,112],"value":"Up"},
{"hash":308958,"name":"tcolsetupform.btdown.caption","sourcebytes":[68,111,119,110],"value":"Down"}
]}
40 changes: 40 additions & 0 deletions connoptions.lrj
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{"version":1,"strings":[
{"hash":92248622,"name":"tconnoptionsform.caption","sourcebytes":[77,97,110,97,103,101,32,99,111,110,110,101,99,116,105,111,110,115,32,116,111,32,84,114,97,110,115,109,105,115,115,105,111,110],"value":"Manage connections to Transmission"},
{"hash":129113086,"name":"tconnoptionsform.tabconnection.caption","sourcebytes":[84,114,97,110,115,109,105,115,115,105,111,110],"value":"Transmission"},
{"hash":179191546,"name":"tconnoptionsform.txpassword.caption","sourcebytes":[80,97,115,115,119,111,114,100,58],"value":"Password:"},
{"hash":74566218,"name":"tconnoptionsform.txusername.caption","sourcebytes":[85,115,101,114,32,110,97,109,101,58],"value":"User name:"},
{"hash":5728634,"name":"tconnoptionsform.txport.caption","sourcebytes":[80,111,114,116,58],"value":"Port:"},
{"hash":48442586,"name":"tconnoptionsform.txhost.caption","sourcebytes":[82,101,109,111,116,101,32,104,111,115,116,58],"value":"Remote host:"},
{"hash":211245100,"name":"tconnoptionsform.cbssl.caption","sourcebytes":[85,115,101,32,83,83,76],"value":"Use SSL"},
{"hash":199351278,"name":"tconnoptionsform.txconnhelp.caption","sourcebytes":[80,108,101,97,115,101,32,115,112,101,99,105,102,121,32,104,111,119,32,37,115,32,119,105,108,108,32,99,111,110,110,101,99,116,32,116,111,32,97,32,114,101,109,111,116,101,32,104,111,115,116,32,114,117,110,110,105,110,103,32,84,114,97,110,115,109,105,115,115,105,111,110,32,100,97,101,109,111,110,32,40,115,101,114,118,105,99,101,41,46],"value":"Please specify how %s will connect to a remote host running Transmission daemon (service)."},
{"hash":175389780,"name":"tconnoptionsform.cbauth.caption","sourcebytes":[65,117,116,104,101,110,116,105,99,97,116,105,111,110,32,114,101,113,117,105,114,101,100],"value":"Authentication required"},
{"hash":91676154,"name":"tconnoptionsform.txrpcpath.caption","sourcebytes":[82,80,67,32,112,97,116,104,58],"value":"RPC path:"},
{"hash":77951539,"name":"tconnoptionsform.cbshowadvanced.caption","sourcebytes":[83,104,111,119,32,97,100,118,97,110,99,101,100,32,111,112,116,105,111,110,115],"value":"Show advanced options"},
{"hash":242755636,"name":"tconnoptionsform.cbaskpassword.caption","sourcebytes":[65,115,107,32,102,111,114,32,112,97,115,115,119,111,114,100],"value":"Ask for password"},
{"hash":153558436,"name":"tconnoptionsform.cbautoreconnect.caption","sourcebytes":[65,108,119,97,121,115,32,97,117,116,111,45,114,101,99,111,110,110,101,99,116],"value":"Always auto-reconnect"},
{"hash":38458714,"name":"tconnoptionsform.txcertfile.caption","sourcebytes":[67,108,105,101,110,116,32,67,101,114,116,105,102,105,99,97,116,101,58],"value":"Client Certificate:"},
{"hash":252579914,"name":"tconnoptionsform.txcertpass.caption","sourcebytes":[80,114,105,118,97,116,101,32,75,101,121,58],"value":"Private Key:"},
{"hash":5740281,"name":"tconnoptionsform.tabproxy.caption","sourcebytes":[80,114,111,120,121],"value":"Proxy"},
{"hash":241121146,"name":"tconnoptionsform.txproxy.caption","sourcebytes":[80,114,111,120,121,32,115,101,114,118,101,114,58],"value":"Proxy server:"},
{"hash":186843018,"name":"tconnoptionsform.txproxyport.caption","sourcebytes":[80,114,111,120,121,32,112,111,114,116,58],"value":"Proxy port:"},
{"hash":199676714,"name":"tconnoptionsform.txproxyusername.caption","sourcebytes":[80,114,111,120,121,32,117,115,101,114,32,110,97,109,101,58],"value":"Proxy user name:"},
{"hash":207047018,"name":"tconnoptionsform.txproxypassword.caption","sourcebytes":[80,114,111,120,121,32,112,97,115,115,119,111,114,100,58],"value":"Proxy password:"},
{"hash":46378498,"name":"tconnoptionsform.cbuseproxy.caption","sourcebytes":[67,111,110,110,101,99,116,32,116,111,32,84,114,97,110,115,109,105,115,115,105,111,110,32,117,115,105,110,103,32,112,114,111,120,121,32,115,101,114,118,101,114],"value":"Connect to Transmission using proxy server"},
{"hash":137889125,"name":"tconnoptionsform.cbusesocks5.caption","sourcebytes":[83,79,67,75,83,32,53],"value":"SOCKS 5"},
{"hash":175389780,"name":"tconnoptionsform.cbproxyauth.caption","sourcebytes":[65,117,116,104,101,110,116,105,99,97,116,105,111,110,32,114,101,113,117,105,114,101,100],"value":"Authentication required"},
{"hash":5671667,"name":"tconnoptionsform.tabpaths.caption","sourcebytes":[80,97,116,104,115],"value":"Paths"},
{"hash":53482707,"name":"tconnoptionsform.txpaths.caption","sourcebytes":[82,101,109,111,116,101,32,116,111,32,108,111,99,97,108,32,112,97,116,104,32,109,97,112,112,105,110,103,115,46,13,10,69,120,97,109,112,108,101,115,58,13,10,47,115,104,97,114,101,61,92,92,112,99,104,92,115,104,97,114,101,13,10,47,118,97,114,47,100,111,119,110,108,111,97,100,115,47,109,117,115,105,99,61,90,58,92,109,117,115,105,99],"value":"Remote to local path mappings.\r\nExamples:\r\n/share=\\\\pch\\share\r\n/var/downloads/music=Z:\\music"},
{"hash":187655027,"name":"tconnoptionsform.label1.caption","sourcebytes":[84,104,101,32,109,97,120,105,109,117,109,32,104,105,115,116,111,114,121,32,111,102,32,100,105,114,101,99,116,111,114,105,101,115,32,102,111,114,32,115,116,111,114,97,103,101,32,111,102,32,116,111,114,114,101,110,116,115],"value":"The maximum history of directories for storage of torrents"},
{"hash":344211,"name":"tconnoptionsform.tabmisc.caption","sourcebytes":[77,105,115,99],"value":"Misc"},
{"hash":208870019,"name":"tconnoptionsform.gbspeed.caption","sourcebytes":[83,112,101,101,100,32,108,105,109,105,116,32,109,101,110,117,32,105,116,101,109,115],"value":"Speed limit menu items"},
{"hash":156555546,"name":"tconnoptionsform.txdownspeeds.caption","sourcebytes":[68,111,119,110,108,111,97,100,32,115,112,101,101,100,115,32,40,75,66,47,115,41,58],"value":"Download speeds (KB/s):"},
{"hash":152693562,"name":"tconnoptionsform.txupspeeds.caption","sourcebytes":[85,112,108,111,97,100,32,115,112,101,101,100,115,32,40,75,66,47,115,41,58],"value":"Upload speeds (KB/s):"},
{"hash":196940297,"name":"tconnoptionsform.edtranslateform.caption","sourcebytes":[65,99,116,105,118,97,116,101,32,116,104,101,32,116,114,97,110,115,108,97,116,101,100,32,118,101,114,115,105,111,110,32,111,102,32,116,104,101,32,97,112,112,108,105,99,97,116,105,111,110,32,40,110,101,101,100,32,116,111,32,114,101,115,116,97,114,116,32,116,104,101,32,97,112,112,108,105,99,97,116,105,111,110,41],"value":"Activate the translated version of the application (need to restart the application)"},
{"hash":231770691,"name":"tconnoptionsform.edtranslatemsg.caption","sourcebytes":[65,99,116,105,118,97,116,101,32,116,104,101,32,116,114,97,110,115,108,97,116,105,111,110,32,111,102,32,116,104,101,32,84,114,97,110,115,109,105,115,115,105,111,110,32,115,116,114,105,110,103,115],"value":"Activate the translation of the Transmission strings"},
{"hash":82521866,"name":"tconnoptionsform.label111.caption","sourcebytes":[76,97,110,103,117,97,103,101,58],"value":"Language:"},
{"hash":231394938,"name":"tconnoptionsform.label2.caption","sourcebytes":[67,111,110,102,105,103,32,102,105,108,101,58],"value":"Config file:"},
{"hash":82479514,"name":"tconnoptionsform.txconname.caption","sourcebytes":[67,111,110,110,101,99,116,105,111,110,32,110,97,109,101,58],"value":"Connection name:"},
{"hash":21703,"name":"tconnoptionsform.btnew.caption","sourcebytes":[78,101,119],"value":"New"},
{"hash":78392485,"name":"tconnoptionsform.btdel.caption","sourcebytes":[68,101,108,101,116,101],"value":"Delete"},
{"hash":93079605,"name":"tconnoptionsform.btrename.caption","sourcebytes":[82,101,110,97,109,101],"value":"Rename"}
]}
Loading
Loading