[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [BP][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 <69ceba5c93b2e_3b1903482386a@gitlab-sidekiq-low-urgency-cpu-bound-v2-94f457dd-zpdmv.mail>

Olivier Kango pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki


Commits:
c1a19bf0 by Olivier Kango at 2026-04-02T20:42:13+02:00
[BP][FIX] wrap tracker field name placeholders with {tr} for translation support
---
* [BP][FIX] wrap tracker field name placeholders with {tr} for translation support
---
* [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

(cherry picked from commit 86b3f376b0348e5eebd6f34ed320b0e9eda72d60)

See merge request tikiwiki/tiki!9919

(cherry picked from commit c665c55a03c5a07e3b3f2c582369c952429f6d0d)

See merge request tikiwiki/tiki!9920

- - - - -


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/c1a19bf0d6a608ab0e5764e6d3e9f190ea94bf83

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/c1a19bf0d6a608ab0e5764e6d3e9f190ea94bf83
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.