Zen Cart Logo
Forums / Bug Reports / [Done v1.6.0] Replace hard-coded language text in /admin/profiles.php

[Done v1.6.0] Replace hard-coded language text in /admin/profiles.php

Locked

Views: 1,064

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
5 Jan 2015, 10:40 AM
#1
s_p_ike avatar

s_p_ike

Zen Follower

Join Date:
Feb 2005
Location:
Italy
Posts:
178
Plugin Contributions:
0

[Done v1.6.0] Replace hard-coded language text in /admin/profiles.php

The file /admin/profiles.php contains hard-coded language text that should be moved to a language-specific define:

<?php foreach($pagesByMenu as $menuKey => $pageList) { ?>
    <dl>
      <dt>
        <strong class="checkLabel"><?php echo $menuTitles[$menuKey] ?></strong>
        <input class="checkButton" type="button" value="[b]Check All[/b]" onclick="checkAll(this.form,'<?php echo $menuKey ?>',true);">
        <input class="checkButton" type="button" value="[b]Uncheck All[/b]" onclick="checkAll(this.form,'<?php echo $menuKey ?>',false);">
      </dt>
<?php foreach($pagesByMenu as $menuKey => $pageList) { ?>
    <dl>
      <dt>
        <strong><?php echo $menuTitles[$menuKey] ?></strong>
        <input class="checkButton" type="button" value="[b]Check All[/b]" onclick="checkAll(this.form,'<?php echo $menuKey ?>',true);">
        <input class="checkButton" type="button" value="[b]Uncheck All[/b]" onclick="checkAll(this.form,'<?php echo $menuKey ?>',false);">
      </dt>

Two occurrences of the same snippet

5 Jan 2015, 2:40 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: [Done v1.6.0] Replace hard-coded language text in /admin/profiles.php