Special characters

Author Message

David Santiso

Monday 24 January 2011 12:29:40 pm

Hi,

With the instalation of eZ Publish I've selected another lenguage pack that it's not the same than the other one that's by default, (mine's spanish).

With the template of content "Feedback form" there's a submit button. The button value is:

value="{"Send form"|i18n("design/ezwebin/full/feedback_form")}"

This translates automaticly: "Send form" to "Enviar formulario".

If I want to put something diferent, how do I do it? If I put the value directly, doesn't show accents or special characters on the front.

Thanks,

David

Franck Magnan

Monday 24 January 2011 12:51:06 pm

Hello David,

if you want to modify spanish translation for "Send form", you must find the spanish translation file. This file is commonly located in share/translations/<your_language_code>/translation.ts.

In this file, you will find an entry like this :

<context>
    <name>design/ezwebin/full/feedback_form</name>
    <message>
        <source>Send form</source>
        <translation>Valider le formulaire</translation>
    </message>
</context>

You can update translation with special characters as you want!
If you don't find such an entry, just add it at the end of the file.

--
Developer at Open Wide

David Santiso

Monday 24 January 2011 1:22:03 pm

Thanks,

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 03:11:27
Script start
Timing: Jan 18 2025 03:11:27
Module start 'layout'
Timing: Jan 18 2025 03:11:27
Module start 'content'
Timing: Jan 18 2025 03:11:27
Module end 'content'
Timing: Jan 18 2025 03:11:27
Script end

Main resources:

Total runtime0.6143 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.7969152.6094
Module start 'layout' 0.00590.0022 740.406339.4375
Module start 'content' 0.00810.6043 779.8438532.3125
Module end 'content' 0.61250.0018 1,312.15638.1875
Script end 0.6142  1,320.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5177160.0002
Check MTime0.00130.2059160.0001
Mysql Total
Database connection0.00090.142610.0009
Mysqli_queries0.568792.5717570.0100
Looping result0.00040.0732550.0000
Template Total0.588095.720.2940
Template load0.00170.272320.0008
Template processing0.586395.440920.2931
Template load and register function0.00030.042010.0003
states
state_id_array0.00100.169110.0010
state_identifier_array0.00070.117520.0004
Override
Cache load0.00130.2167210.0001
Sytem overhead
Fetch class attribute can translate value0.00070.119720.0004
Fetch class attribute name0.00150.247240.0004
XML
Image XML parsing0.00060.103720.0003
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00070.1195150.0000
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs