Skip to content

Commit 65bf37a

Browse files
authored
Merge pull request #176 from samwilson/missing-l10n-messages
Add some missing i18n messages
2 parents 4bb7059 + 859f402 commit 65bf37a

3 files changed

Lines changed: 14 additions & 8 deletions

File tree

admin/admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
$tabsheet = new tabsheet();
5151
$tabsheet->add( 'config', '<span class="icon-cog"></span>' . l10n('Configuration'), add_url_params( $my_base_url, array('tab'=>'config') ) );
5252
$tabsheet->add( 'tag', '<span class="icon-tags"></span>' . l10n('Tags'), add_url_params( $my_base_url, array('tab'=>'tag') ) );
53-
$tabsheet->add( 'place', '<span class="osm-location"></span>' . l10n('Places'), add_url_params( $my_base_url, array('tab'=>'place') ) );
53+
$tabsheet->add( 'place', '<span class="osm-location"></span>' . l10n('OSM_PLACES'), add_url_params( $my_base_url, array('tab'=>'place') ) );
5454
$tabsheet->select($page['tab']);
5555

5656
$tabsheet->assign();

admin/admin_place.tpl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,18 +104,18 @@ $("#searchInput").on("keydown", function(e) {
104104
{/if}
105105

106106
<fieldset>
107-
<legend>{'Add a place'|@translate}</legend>
107+
<legend>{'OSM_ADD_PLACE'|@translate}</legend>
108108
<ul>
109109
<li>
110-
<label>{'New place'|@translate} : </label>
110+
<label>{'OSM_NEW_PLACE'|@translate} : </label>
111111
<input type="text" name="add_place" size="50" require="" placeholder="Home">
112112
</li>
113113
<li>
114-
<label>{'Latitude'|@translate} : </label>
114+
<label>{'LATITUDE'|@translate} : </label>
115115
<input type="text" name="add_lat" size="40" require="" placeholder="48.858">
116116
</li>
117117
<li>
118-
<label>{'Longitude'|@translate} : </label>
118+
<label>{'LONGITUDE'|@translate} : </label>
119119
<input type="text" name="add_lon" size="40" require="" placeholder="2.2942">
120120
</li>
121121
</ul>
@@ -124,7 +124,7 @@ $("#searchInput").on("keydown", function(e) {
124124
</fieldset>
125125

126126
<fieldset>
127-
<legend>{'Place selection'|@translate}</legend>
127+
<legend>{'PLACE_SELECTION'|@translate}</legend>
128128

129129
{if count($all_places)}
130130
<div><label><span class="icon-filter" style="visibility:hidden" id="filterIcon"></span>{'Search'|@translate}: <input id="searchInput" type="text" size="12"></label></div>
@@ -146,8 +146,8 @@ $("#searchInput").on("keydown", function(e) {
146146

147147
<p>
148148
<input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
149-
<input type="submit" name="edit" value="{'Edit selected places'|@translate}">
150-
<input type="submit" name="delete" value="{'Delete selected places'|@translate}" onclick="return confirm('{'Are you sure?'|@translate}');">
149+
<input type="submit" name="edit" value="{'EDIT_PLACES'|@translate}">
150+
<input type="submit" name="delete" value="{'DELETE_PLACES'|@translate}" onclick="return confirm('{'Are you sure?'|@translate}');">
151151
</p>
152152
</fieldset>
153153

language/en_UK/plugin.lang.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,9 @@
121121
$lang['CENTER_MAP_DESC'] = 'Center the worldmap on the specific location (GPS coordinate). lat and lng separated by a comma, default is 0,0';
122122
$lang['POSITION_INDEX_CMAP'] = 'Show the map at';
123123
$lang['POSITION_INDEX_CMAP_DESC'] = 'Will display the map at the specify index';
124+
$lang['OSM_PLACES'] = 'Places';
125+
$lang['OSM_ADD_PLACE'] = 'Add a place';
126+
$lang['OSM_NEW_PLACE'] = 'New place';
127+
$lang['PLACE_SELECTION'] = 'Place selection';
128+
$lang['EDIT_PLACES'] = 'Edit selected places';
129+
$lang['DELETE_PLACES'] = 'Delete selected places';

0 commit comments

Comments
 (0)