Cucumis - Servei gratuït de traducció en línia
. .



Project Export Template

Project Export Template

You export your language files using an export template.

There are many ways to build a template. Here are some examples of templates.

1) Single line

[linerepeat=0,68]$v = "$t";

This simple line of template will generate a language file of 69 lines. Each line is build with the special variables $v (the ID of your text) and $t (the translated text).

You'll get something like :

Bill_AddPhotoButton = Take "Picture" of Receipt;
Bill_CommentLabel = Comment;
Bill_CommentPlaceholder = Add a comment;

2) Single line with quote transform

[linerepeat=0,68]$v = "@sdq($t)";

Now we use a function @sdq that will escape all double quotes of its parameter.

You'll get something like :

Bill_AddPhotoButton = "Take \"Picture\" of Receipt";
Bill_CommentLabel = "Comment";
Bill_CommentPlaceholder = "Add a comment";


3) To be continued...