[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] wrap tracker field name placeholders with {tr} for translation support

"Olivier Kango \(@olivierkango\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69cead8e7ceea_3b19055086149@gitlab-sidekiq-low-urgency-cpu-bound-v2-766d6b4bc8-r2rmt.mail>

Olivier Kango pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
86b3f376 by Olivier Kango at 2026-04-02T19:47:56+02:00
[FIX] wrap tracker field name placeholders with {tr} for translation support
---
* [FIX] wrap tracker field name placeholders with {tr} for translation support

See merge request tikiwiki/tiki!9918

- - - - -


4 changed files:

- templates/trackerinput/email.tpl
- templates/trackerinput/numeric.tpl
- templates/trackerinput/text.tpl
- templates/trackerinput/url.tpl


Changes:

=====================================
templates/trackerinput/email.tpl
=====================================
@@ -1,7 +1,7 @@
 <div{if !empty($field.options_map.labelasplaceholder)} class="input-group"{/if}>
     <input type="email" name="{$field.ins_id}" id="{$field.ins_id}" value="{$field.value|escape}"
         class="form-control{if !empty($field.options_map.labelasplaceholder)} labelasplaceholder{/if}"
-        {if !empty($field.options_map.labelasplaceholder)}placeholder="{$field.name}"{/if}
+        {if !empty($field.options_map.labelasplaceholder)}placeholder="{tr}{$field.name}{/tr}"{/if}
     >
     {if $field.options_map.labelasplaceholder and $field.isMandatory eq 'y'}
         <span class="input-group-text">


=====================================
templates/trackerinput/numeric.tpl
=====================================
@@ -6,7 +6,7 @@
     <input type="number" class="numeric form-control {if !empty($field.options_map.labelasplaceholder)}labelasplaceholder{/if}" name="{$field.ins_id|escape}"
             {if $field.options_array[1]}size="{$field.options_array[1]|escape}" maxlength="{$field.options_array[1]|escape}"{/if}
             value="{$field.value|escape}" id="{$field.ins_id}"
-            {if !empty($field.options_map.labelasplaceholder)}placeholder="{$field.name}"{/if}
+            {if !empty($field.options_map.labelasplaceholder)}placeholder="{tr}{$field.name}{/tr}"{/if}
     >
 
     {if !empty($field.options_map.append)}


=====================================
templates/trackerinput/text.tpl
=====================================
@@ -6,7 +6,7 @@
         <input type="text" class="form-control {if !empty($field.options_map.labelasplaceholder)}labelasplaceholder{/if}"
                 id="{$field.ins_id|replace:'[':'_'|replace:']':''}" name="{$field.ins_id}"
                 value="{$field.value|default:$field.defaultvalue|escape}"
-                {if !empty($field.options_map.labelasplaceholder)}placeholder="{$field.name}"{/if}
+                {if !empty($field.options_map.labelasplaceholder)}placeholder="{tr}{$field.name}{/tr}"{/if}
                 {if !empty($field.options_map.size)}size="{$field.options_map.size}"{/if}
                 {if !empty($field.options_map.max)}maxlength="{$field.options_map.max}"{/if}
         >


=====================================
templates/trackerinput/url.tpl
=====================================
@@ -3,7 +3,7 @@
            name="{$field.ins_id}" id="{$field.ins_id}" value="{$field.value|escape}" size="60"
            {if $data.strictValidationEnabled}data-url-wiki-wrapper-validation-input=""
            data-url-wiki-wrapper-feedback-id="{$field.ins_id}_wikiSyntaxLive"{/if}
-           {if !empty($field.options_map.labelasplaceholder)}placeholder="{$field.name}"{/if}
+           {if !empty($field.options_map.labelasplaceholder)}placeholder="{tr}{$field.name}{/tr}"{/if}
     >
     {if $field.options_map.labelasplaceholder and $field.isMandatory eq 'y'}
         <span class="input-group-text">



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/86b3f376b0348e5eebd6f34ed320b0e9eda72d60

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/86b3f376b0348e5eebd6f34ed320b0e9eda72d60
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.