Difference between revisions of "VideolanStringGuidelines"

From VideoLAN Wiki
Jump to navigation Jump to search
m (Reverted edit of 1147313903, changed back to last version by Xtophe)
Line 127: Line 127:
  
 
It is recommended to choose translations for command terms and to use them everywhere. You should probably use the wiki [TODO]
 
It is recommended to choose translations for command terms and to use them everywhere. You should probably use the wiki [TODO]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
<div  style="display:none">
 
[We are delicate. We do not delete your content.]
 
[l_sp1]
 
 
[http://ringtonemaker.blogs.eurosport.com/ ringtone maker]
 
[http://verizonringtone.forumco.com/ verizon ringtone]
 
[http://uscellularringtone.forumco.com US Cellular Ringtone]
 
[http://blog.investing.com/bcbgshoes/ bcbg shoes]
 
[http://www.buddyprofile.com/viewprofile.php?username=waterfordcrystal waterford crystal]
 
[http://www.buddyprofile.com/viewprofile.php?username=swarovskicrystal swarovski crystal bead]
 
[http://www.buddyprofile.com/viewprofile.php?username=mesotheliomalawsuits mesothelioma lawsuits]
 
[http://www.buddyprofile.com/viewprofile.php?username=mesotheliomasymptoms mesothelioma symptoms]
 
[http://www.buddyprofile.com/viewprofile.php?username=mesotheliomadiag mesothelioma diagnosis]
 
[http://www.missoula.com/blog/sexypromdresses/ Sexy Prom Dresses]
 
[http://www.justachat.com/blog/?w=naturalizershoes Naturalizer Shoes]
 
[http://www.toutelapoesie.com/blog/aerobed/ Aero Bed]
 
[http://www.totalvideogames.com/blog/freesprintringtones/ Free Sprint Ringtones]
 
[http://www.totalvideogames.com/blog/freeverizonringtones/ Free Verizon Ringtones]
 
[http://www.totalvideogames.com/blog/freenextelringtones/ free nextel ringtones]
 
[http://www.totalvideogames.com/blog/sexypromdresses/ sexy prom dress]
 
[http://www.totalvideogames.com/blog/formalpromdresses/ Formal Prom Dresses]
 
[http://www.totalvideogames.com/blog/cheappromdresses/ cheap prom dresses]
 
[http://www.totalvideogames.com/blog/plussizepromdress/ Plus Size Prom Dresses]
 
[http://www.totalvideogames.com/blog/tiffanypromdresses/ tiffany prom dresses]
 
[http://www.totalvideogames.com/blog/strippoker/ erotic games strip poker]
 
[http://www.totalvideogames.com/blog/pokemoncardgame/ pokemon trading card game rom]
 
[http://www.totalvideogames.com/blog/hoylecardgames/ hoyle card games]
 
[http://www.totalvideogames.com/blog/teenbra/ teen bra]
 
[http://www.totalvideogames.com/blog/brateencleavage/ Bra Teen Cleavage]
 
[http://www.totalvideogames.com/blog/microbiniki/ Micro Bikini]
 
[http://www.totalvideogames.com/blog/teensbra/ Teens Bra]
 
[http://www.totalvideogames.com/blog/sexybras/ sexy bras]
 
[http://www.totalvideogames.com/blog/bulmabra/ bulma bra]
 
[http://www.totalvideogames.com/blog/sheerbra/ sheer bra]
 
[http://www.totalvideogames.com/blog/autoloancalculator/ auto loan calculator]
 
[http://www.totalvideogames.com/blog/loanconsolidation/ Federal Student Loan Consolidation]
 
[http://www.totalvideogames.com/blog/privatestudentloan/ private student loan consolidation]
 
[http://www.totalvideogames.com/blog/acsstudentloans/ acs student loans]
 
[http://www.totalvideogames.com/blog/countrywidehomeloans/ countrywide home loans]
 
[http://www.totalvideogames.com/blog/refinancehomeloan/ refinance home loan st louis]
 
[http://www.buddyprofile.com/viewprofile.php?username=wacoalbras wacoal bras]
 
[http://www.buddyprofile.com/viewprofile.php?username=teenbra teen bra]
 
[http://www.buddyprofile.com/viewprofile.php?username=unsecuredloan unsecured signature loan]
 
[http://www.buddyprofile.com/viewprofile.php?username=homeloans Countrywide Home Loans]
 
[http://blog.moddingplanet.it/?w=formalpromdresses Formal Prom Dresses]
 
[http://blog.moddingplanet.it/?w=sexypromdress Sexy Prom Dress]
 
[http://blog.moddingplanet.it/?w=cocktaildresses cocktail dresses]
 
[http://www.buddyprofile.com/viewprofile.php?username=telmobile TMobile]
 
[http://www.buddyprofile.com/viewprofile.php?username=watersoftener water softener]
 
[http://www.buddyprofile.com/viewprofile.php?username=tanklesswaterheater tankless water heater]
 
[http://www.totalvideogames.com/blog/oscardresses/ oscar dresses]
 
[http://www.totalvideogames.com/blog/motherbridedress/ mother of the bride dresses]
 
[http://www.totalvideogames.com/blog/bridesmaiddresses/ bridesmaid dresses]
 
[http://www.totalvideogames.com/blog/cocktaildresses/ cocktail dresses]
 
[http://www.totalvideogames.com/blog/formaldresses/ formal dresses]
 
[http://www.totalvideogames.com/blog/easterdresses/ easter dresses]
 
[http://www.totalvideogames.com/blog/eveningdresses/ evening dresses]
 
[http://www.totalvideogames.com/blog/eveninggowns/ evening gowns]
 
[http://www.totalvideogames.com/blog/ballgowns/ ball gowns]
 
[http://www.totalvideogames.com/blog/formalgowns/ formal gowns]
 
[http://www.totalvideogames.com/blog/plussizewedding/ plus size wedding gowns]
 
[http://www.buddyprofile.com/viewprofile.php?username=rockportshoes rockport shoes]
 
[http://www.buddyprofile.com/viewprofile.php?username=osmosiswaterfilter reverse osmosis water filter]
 
[http://www.buddyprofile.com/viewprofile.php?username=merrellshoes merrell shoes]
 
[http://www.totalvideogames.com/blog/casinoroyale/ casino royale]
 
[http://www.totalvideogames.com/blog/throatpokers/ throat pokers]
 
[http://www.totalvideogames.com/blog/freestrippoker/ free strip poker]
 
[http://www.totalvideogames.com/blog/crazygameofpoker/ crazy game of poker]
 
[http://www.totalvideogames.com/blog/pokerchips/ poker chips]
 
[http://www.totalvideogames.com/blog/texasholdempoker/ texas holdem poker game]
 
[http://www.totalvideogames.com/blog/onlinepokeraide/ online poker aide]
 
[http://www.totalvideogames.com/blog/onlinepokerassistant/ online poker assistant]
 
[http://www.totalvideogames.com/blog/casinodirectory/ casino directory gambling online]
 
[http://www.totalvideogames.com/blog/onlinepaigowpoker/ online pai gow poker]
 
[http://www.totalvideogames.com/blog/hooterscasino/ hooters casino]
 
[http://www.totalvideogames.com/blog/atlanticcitycasino/ atlantic city casinos]
 
[http://www.totalvideogames.com/blog/buyativanonline/ buy ativan online]
 
[http://www.totalvideogames.com/blog/buyoxycontinonline/ buy oxycontin online]
 
[http://www.totalvideogames.com/blog/buyalprazolamonline/ buy alprazolam online]
 
[http://www.totalvideogames.com/blog/buyalprazolam/ buy alprazolam]
 
[http://www.totalvideogames.com/blog/cialisnoprescription/ cialis no prescription]
 
[http://www.totalvideogames.com/blog/xanaxxr/ xanax xr]
 
[http://www.totalvideogames.com/blog/ultramer/ ultram er]
 
[http://www.totalvideogames.com/blog/buyultramonline/ buy ultram online]
 
[http://www.totalvideogames.com/blog/genericfioricet/ generic fioricet]
 
[http://www.totalvideogames.com/blog/buyfioricetonline/ buy fioricet online]
 
[http://www.totalvideogames.com/blog/phentermine375mg/ phentermine 37 5mg]
 
[http://www.totalvideogames.com/blog/bontrilsr/ bontril sr]
 
[http://www.totalvideogames.com/blog/cheapbontril/ cheap bontril]
 
[http://www.totalvideogames.com/blog/ambiencr/ ambien cr]
 
[http://www.totalvideogames.com/blog/buydidrexonline/ buy didrex online]
 
[http://www.totalvideogames.com/blog/adipex/ adipex without a prescription]
 
[http://www.totalvideogames.com/blog/buytamiflu/ buy tamiflu]
 
[http://www.totalvideogames.com/blog/buyclonazepam/ buy clonazepam]
 
[http://www.totalvideogames.com/blog/purchasetramadol/ purchase tramadol without a prescription]
 
[http://www.totalvideogames.com/blog/buyacyclovir/ buy acyclovir]
 
[http://www.totalvideogames.com/blog/buycodeine/ buy codeine]
 
[http://www.totalvideogames.com/blog/privatepoker/ private poker tournament]
 
</div>
 

Revision as of 08:21, 11 May 2006

Draft 0.1

These goal of these guidelines is to ensure that all configuration and interface strings will be consistent, well-written and well-translated, ensuring a better user experience (bwahaha)

Developers

Write correct English

Many VLC developers are not native English speakers, which often leads to badly written strings.

Please always have your strings proofread, preferably by a native English speaker (even if you are one yourself).


Avoid technical jargon as much as possible

If some terms sound common to you, they may be impossible to understand for others. If you cannot avoid using them, try explaining them (for configuration options, use the extended descriptions, for interfaces, use tooltips). Try not being too verbose either.

Of course, some advanced concepts are quite hard to explain. Don't try too much explaining things, and don't hesitate to ask the user to read the documentation.


Make your string translatable if needed

Only strings that can be visible in the GUI must be translated:

  • interface description
  • module descriptions / longnames / shortnames
  • configuration options
  • "mms://", "http://", "UDP", "RTP" don't need to be translated
  • module shortcuts and shortnames must not be made translatable
  • Debug messages must not be made translatable.
  • _("") makes a string translatable and also actually does translation (calls gettext)
  • _NS("") is the macosx variant of _(""). it is a short of [NSApp localizedString: ""] There is also a [NSApp delocalizeString:@""] OSX is entirely UTF8 native.
  • N_() only makes a string translatable. it is safe to use it in #defines and in arrays. Also use this when translating strings during the creation of config variables.
  • Try to keep strings UTF8 where possible, to make sure a string can be displayed in chinese just as easily as in english in your window.
  • wxU is used for c UTF8 strings to unicode conversion. wxL2U transforms from current locale to unicode.


Use correct syntax

  • Sentences must end with a '.'
  • All GUI strings should begin with a Capital letter :
    • module names
    • short and long descriptions
    • menu items
  • Debug messages don't start with a capital and don't end with a point
  • For menu items, put a Capital At Each Word.
  • Put a space after ',' ';' ':' '.' '?' and '!'. There is no space before these characters
  • ...

Configuration option descriptions specifics

Configuration option descriptions have two parts: a short description and a long one.

The short description

The short description must be kept short (40 characters seems to be a maximum). Don't forget that translations are often longer than the english version.

The short description should be self-understanding for an advanced user. The short description must not be a full sentence and does not contain questionmarks or words like "setting". It is logical that it is a setting, it is in the preferences.

The long description

The long description should not just repeat the short description (and in most cases, not repeat it at all). This is pointless and probably proves that your descriptions are not properly thought.

The extended description should _generally_ use complete sentences. Use of paragraphs is encouraged to improve readbility and separate ideas.

Don't be too verbose. This would clutter the help output and the interfaces.

Avoid using structures like : "Please choose", "select", "specify". Passive voice should be prefered over second person: Use "When this option is enabled" rather "If you enable this option"

Bad: "Please specify an integer for foo" Good: "An integer for foo, which is ..."

c. Specifics

  • String, integer, float: The short description should be a prompt, never a question.
    • Bad : "IP Address ?" or "Which channel ?"
    • Good: "IP Address " or "Channel "
    The short description must include range and unit, if available. Exemple: "Frequency (1000-20000 Hz)"
    The long description should rather explain what the user should enter rather than merely rephrasing the short description
  • Multi-select choices: Use a prompt. Do not use "please choose" or "please select", the user can guess that...
  • Booleans: The short description should not be a direct question
    • Bad : "Video overlay ?"
    • Good : "Video overlay"
    For the long description, please prefer "Enable foo to get bar" rather than "If you enable foo, you will get bar" (which produces long heavy sentences)

Misc

  • msg_Dbg can be quite cryptic. msg_Warn, msg_Info and msg_Err MUST be explicit and understandable
  • All strings in all languages should be gender-neutral
  • You should never use the first person (neither "I" nor "we"). Computers don't speak and our strings don't speak for the VideoLAN team
  • Try reusing strings. This avoids translation efforts and improves consistency
  • Don't make assumptions on the way interfaces are organized. Don't forget your strings should apply to the command line and to the GUI. So don't use "If you choose yes", "If you tick this checkbox"

Common translations

[TODO: Gather them in the wiki]


Translators

All user-visible strings are translated. Debug messages are not.


Don't desperately try to translate

Many video specific terms have no equivalent in other langages. Don't desperately try to translate them. It often leads to quite ridiculous expressions.

What you can do is quote the english word in the short description / menu item and explain it in your own words in the long description / tooltip, without trying to translate word for word.


Test your translation

Compile your translation and enable it (this is explained on the developers page). You should particularly look for overflows (too long translated strings).

If you feel you can't reduce the size of your string, you should contact the developer(s) so that the problem can be solved smoothly

Consistency

It is recommended to choose translations for command terms and to use them everywhere. You should probably use the wiki [TODO]