2424{
2525 include_once (dirname (__FILE__ ).'/picture.inc.php ' );
2626}
27+ elseif (script_basename () == 'index ' )
28+ {
29+ include_once (dirname (__FILE__ ).'/index.inc.php ' );
30+ }
2731
2832// Do we have to show a link on the left menu
2933if ($ conf ['osm_conf ' ]['left_menu ' ]['enabled ' ])
@@ -77,9 +81,9 @@ function osm_end_index()
7781 osm_load_language ();
7882
7983 $ map_url = osm_duplicate_map_index_url ( array (), array ('start ' ) );
80- $ link_title = sprintf ( l10n ('displays %s on a map ' ), strip_tags ($ page ['title ' ]) );
84+ $ link_title = sprintf ( l10n ('DISPLAY_ON_MAP ' ), strip_tags ($ page ['title ' ]) );
8185 $ template ->concat ( 'PLUGIN_INDEX_ACTIONS ' , "\n<li> " .sprintf (OSM_ACTION_MODEL ,
82- $ map_url , $ link_title , '' , 'map ' , l10n ('Map ' )
86+ $ map_url , $ link_title , '' , 'map ' , l10n ('MAP ' )
8387 ).'</li> ' );
8488}
8589
@@ -98,8 +102,8 @@ function osm_blockmanager_apply($mb_arr)
98102 include_once ( dirname (__FILE__ ) .'/include/functions.php ' );
99103 load_language ('plugin.lang ' , OSM_PATH );
100104 global $ conf ;
101- $ linkname = isset ($ conf ['osm_conf ' ]['left_menu ' ]['link ' ]) ? $ conf ['osm_conf ' ]['left_menu ' ]['link ' ] : ' OS World Map ' ;
102- $ link_title = sprintf ( l10n ('displays %s on a map ' ), strip_tags ($ conf ['gallery_title ' ]) );
105+ $ linkname = isset ($ conf ['osm_conf ' ]['left_menu ' ]['link ' ]) ? $ conf ['osm_conf ' ]['left_menu ' ]['link ' ] : l10n ( ' OSWorldMap ' ) ;
106+ $ link_title = sprintf ( l10n ('DISPLAY_ON_MAP ' ), strip_tags ($ conf ['gallery_title ' ]) );
103107 $ block ->data ['osm ' ] = array (
104108 'URL ' => osm_make_map_index_url ( array ('section ' =>'categories ' ) ),
105109 'TITLE ' => $ link_title ,
0 commit comments