1. zurmo
  2. zurmo

Commits

Ivica Nedeljkovic  committed c7f7f52 Merge

Merged in tanakahisateru/zurmo-prs/multibyte-label (pull request #3)

  • Participants
  • Parent commits 8a6f7f5, 0edf7d4
  • Branches default

Comments (0)

Files changed (1)

File app/protected/extensions/zurmoinc/framework/modules/Module.php

View file
                     if (isset($metadata['global']['singularModuleLabels']) &&
                         isset($metadata['global']['singularModuleLabels'][$language]))
                     {
-                        return ucwords($metadata['global']['singularModuleLabels'][$language]);
+                        $label = $metadata['global']['singularModuleLabels'][$language];
+                        return preg_match('/^[a-z]/', $label) ? ucwords($label) : $label;
                     }
                 case 'SingularLowerCase':
                     if ( isset($metadata['global']['singularModuleLabels']) &&
                     if ( isset($metadata['global']['pluralModuleLabels']) &&
                         isset($metadata['global']['pluralModuleLabels'][$language]))
                     {
-                        return ucwords($metadata['global']['pluralModuleLabels'][$language]);
+                        $label = $metadata['global']['pluralModuleLabels'][$language];
+                        return preg_match('/^[a-z]/', $label) ? ucwords($label) : $label;
                     }
                 case 'PluralLowerCase':
                     if ( isset($metadata['global']['pluralModuleLabels']) &&