I Segnaposto Personalizzati sono progettati per casi in cui i testi della sorgente contengono alcuni segnaposto meno comuni non evidenziati nelle stringhe sorgente (nell’Editor) di default.
You can manage Custom Placeholders in the Organization Settings.
Per configurare l’espressione del tuo segnaposto personalizzato, puoi usare gli elementi dalla tabella di sintassi dell’espressione. Ad esempio, se vorresti evidenziare questo [[Placeholder1]]
, la tua espressione potrebbe somigliare a questa: start, then "[[", range "a,z,A,Z,0,9", limit "1,20", then "]]", end
Per semplificare un po’ le cose, decostruiamo l’espressione sopra.
start
– indica l’inizio dell’espressione.
then "[["
– indica che il tuo segnaposto personalizzato inizia con due parentesi quadre aperte
range "a,z,A,Z,0,9"
– indica che il tuo segnaposto personalizzato potrebbe includere caratteri da a-z e/o A-Z e/o 0-9.
limit "1,20"
– indica che la lunghezza del segnaposto è da 1 a 20 caratteri.
then "]]"
– indica che il tuo segnaposto personalizzato termina con due parentesi quadre chiuse.
end
– indica la fine dell’espressione.
Below you can see a few examples of custom placeholder expression and how they will be highlighted in source strings in the Editor.
Custom placeholder enclosed in percent characters and curly brackets
Expression: start, maybe "(", then "%", then "{", anything, then "}", maybe ")", then "%", end
Argument delimiter: "
String example: A test string with a custom %{placeholder}%
Custom placeholder enclosed in double square brackets
Expression: start, then "[[", anythingbut "[[", then "]]", multiple, end
Argument delimiter: "
String example: A test string with a custom [[placeholder]]
Custom placeholder
Expression: start, then "placeholder", end
Argument delimiter: "
String example: A test string with a custom placeholder
Custom placeholder enclosed in paragraph characters
Expression: start, then "§", anything, then "§", end
Argument delimiter: "
String example: A test string with a custom §placeholder§
Long sentence that you might want to highlight as a single custom placeholder
Expression: start, then "Long sentence that you might want to highlight as a single custom placeholder"
Argument delimiter: "
String example: A test string with a Long sentence that you might want to highlight as a single custom placeholder
To assign the created custom placeholder to a project, follow these steps:
Once the custom placeholders are assigned to the project, project members will see them highlighted in the Editor during the translation process.