Comments (7)
Here I am :) I will help you with spanish translation :)
from torrenttunes-client.
Brainstorming on coming up with a good way to do this.
I think I'm going to have a json file that contains all the strings in the html. Something like strings.json
. Where we can have different strings.json files, like strings_es.json
and strings_en.json
Then I'll generate the different html files, like the english and spanish version using a mustache template.
Then I'll run a javascript command to detect the browser's native language, and if its spanish, I'll automatically redirect you to the es.torrenttunes.ml version.
from torrenttunes-client.
That seems great! Tell me when you have the html(s).
from torrenttunes-client.
Here's the strings.json
file, I think I've got everything. I suggest copying and pasting this into here:
http://jsoneditoronline.org/ , it makes editing easier.
Only translate the right side, IE only change "home":"Home"
{
"strings": {
"home": "Home",
"home_page": "Home Page",
"lyrics": "Lyrics",
"picture": "Picture",
"browse": "Browse",
"play_queue": "Play Queue",
"share": "Share",
"playlists": "PlayLists",
"search_empty": "Search for Artists, Albums, or Songs",
"donate_bitcoin": "Donate Bitcoin",
"songs": "songs",
"top_songs": "Top Songs",
"trending_songs": "Trending Songs",
"track": "Track",
"artist": "Artist",
"artists": "Artists",
"related_artists": "Related Artists",
"time": "Time",
"album": "Album",
"albums": "Albums",
"top_albums": "Top Albums",
"trending_albums": "Trending Albums",
"play_album": "Play Album",
"plays": "Plays",
"compilations": "Compilations",
"tags": "Tags",
"seeders": "seeders",
"name": "Name",
"create_new_playlist": "Create New Playlist",
"playlist_empty": "My Playlist",
"about": "About",
"contact": "Contact",
"support": "Support",
"play_now": "Play now",
"play_next": "Play next",
"play_last": "Play last",
"create_station": "Create Station",
"add_to_playlist": "Add to Playlist",
"decentralized": "Decentralized",
"back_to_top": "Back to top",
"decentralized_section_html": " Every song is a <i>.torrent</i> file, tagged with <a class=\"text-normal\" href=\"http://musicbrainz.org/\" target=\"_blank\">MusicBrainz</a>, and shared on open and public <a href=\"https://en.wikipedia.org/wiki/BitTorrent\" class=\"text-normal\" target=\"_blank\">BitTorrent</a> trackers. ",
"open_source": "Open-Source",
"open_source_section_html": " TorrentTunes is fully <a class=\"text-normal\" href=\"https://github.com/tchoulihan/torrenttunes-client\" target=\"_blank\">open-source</a>, feel free to ask for features or bug fixes on <a class=\"text-normal\" href=\"https://github.com/tchoulihan/torrenttunes-client\" target=\"_blank\">github.</a>",
"requests": "Requests",
"requests_section_html": " Make requests for more artists, albums, songs, or features, on the subreddit, <a class=\"text-normal\" href=\"http://www.reddit.com/r/torrenttunes/\" target=\"_blank\">/r/torrentunes</a>.\n ",
"sharing": "Sharing",
"sharing_section_html": " Help out by sharing your own music collection, with the <a class=\"text-normal\" href=\"https://github.com/tchoulihan/torrenttunes-launcher/releases/download/1.0.0/torrenttunes-launcher.jar\" target=\"_blank\">TorrentTunes Client</a>.\n ",
"free": "Free",
"free_section_html": " TorrentTunes is entirely free to use, but you can support it by donating bitcoin <a href=\"javascript:void(0);\" class=\"text-normal\" data-toggle=\"modal\" data-target=\"#donateModal\">here</a>.\n ",
"download": "Download",
"download_torrenttunes": "Download TorrentTunes",
"download_section": "Install the TorrentTunes client",
"install_torrenttunes": "Install TorrentTunes",
"install_message_html": "If you'd like to share music on your computer, and help upload your library to the bittorrent network, install the <a class=\"text-normal\" href=\"https://github.com/tchoulihan/torrenttunes-launcher/releases/download/1.0.0/torrenttunes-launcher.jar\" target=\"_blank\">TorrentTunes client</a>.\n <br>\n <br>\n ",
"requires": "Requires",
"firewall_message": "Firewalls turned off(to allow torrenting)",
"upload_warning_html": "<b>Do not share</b> your music unless you plan to have this client running all day. If you close TorrentTunes, you will no longer be sharing your songs.\n <br>\n <br> I <b>will</b> remove your songs from the server if you do not continue to run the client in order to share them with others.\n <br>\n <br> If you find that your songs have been removed from the server, click Settings -> <i> Clear local Database</i>, and reshare your songs.",
"music_directory": "Music Directory",
"path_required": "A path is required",
"maximum_download_speed": "Maximum Download Speed",
"maximum_upload_speed": "Maximum Upload Speed",
"maximum_cache_size": "Maximum Cache Size",
"download_location": "Download Location",
"save_settings": "Save Settings",
"remove_cached_songs": "Remove Cached Songs",
"clear_local_database": "Clear Local Database",
"uninstall": "Uninstall"
}
}
from torrenttunes-client.
Done: http://jsoneditoronline.org/?id=5ce465689d6165beebf156810cacc2cc
What do you mean with line ""requires": "Requires","?
from torrenttunes-client.
Dang that was fast, thanks!
I think what you have should work, its for the line:
Requires:
- java 8
- open firewall
I should have this implemented both client and server side within a few days.
from torrenttunes-client.
Then is ok that line in spanish :)
from torrenttunes-client.
Related Issues (20)
- Fix create radio station HOT 2
- making it easy for people to help seed songs. HOT 2
- How do I turn this service off for mac? HOT 1
- Add a command line option for -noBrowser HOT 5
- Make table columns work better on mobile.
- Support localizations HOT 2
- Add gzip compression
- Create a torrent watch directory.
- Change templating logic
- Add a watch service
- Is there a way to run propertly on a server instead of localhost? HOT 4
- High CPU use when playing HOT 1
- Add artist donation links, now that they are on musicbrainz
- Torrenttunes begin frozen HOT 2
- [Question] Sharing music library HOT 4
- No entry in the AUR
- Does this have any sort of blocklist functionality? HOT 3
- torrenttunes.tk is down HOT 3
- The torrenttunes-launcher.jar throws exception on start
- I want to contribute to torrenttunes HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from torrenttunes-client.