Skip to content

🌍 Official YOURLS .pot file to create and maintain your own YOURLS translation

License

Notifications You must be signed in to change notification settings

YOURLS/YOURLS.pot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

53 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

YOURLS .POT Listed in Awesome YOURLS!

YOURLS Logo

This is the official YOURLS .pot file to generate and maintain your own translations.

Note

Check the release archives for older versions.

Awesome! How do I create my own translation?

  1. Download the translation file template YOURLS.pot
  2. Rename it to [your-locale].po, where [your-locale] is typically language code, underscore, country code (for instance in Portugal that would be pt_PT, while in Brazil it’d be pt_BR). You'll find a complete list here.
  3. Install a translation tool: it’s nothing more than a text editor capable of reading .po files, showing you the untranslated string and a text box where you type in the translation, and saving a .mo file which is what PHP needs.
    There are downloadable offline tools, such as poEdit, or online tools like TranslatePOT which can even (attempt to) translate automatically.
  4. Translate all the strings and save your work; you'll end up with a fully translated pt_BR.po and the generated pt_BR.mo

Awesome! How do I test my translation in YOURLS?

  1. Install the latest YOURLS release
  2. Drop your pt_BR.po and pt_BR.mo files in user/languages
  3. Add define( 'YOURLS_LANG', 'pt_BR' ) to your config.php
  4. That’s it! Play with YOURLS to check everything is fine

Awesome! How do I make my translation available to all?

When your translation file is all fine, make sure others can benefit from your hard work!

  1. Upload your two PO and MO files somewhere on the interweb.
    It's best to use a source control service, such as Github or GitLab: this will make your changes easy to track, your files easy to maintain, and others' contributions easy to implement.
  2. Make it clear for users: a directory with clearly labelled files (yourls-1.6-pt_BR.zip for instance) so they know what to pick.
  3. Open a pull request on https://github.com/YOURLS/awesome-yourls and get your translation listed!

What languages are already available?

See https://github.com/YOURLS/awesome#translations

Credits and license

Thanks to LeoColomb - L10n was a low priority feature but he threw his patch at my face :)

License is "Do whatever the hell you want with it".

About

🌍 Official YOURLS .pot file to create and maintain your own YOURLS translation

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  
  •  
  •  
  •  

Packages

No packages published

Contributors 6