Annonce

  •  » Styles
  •  » Chaînes de langue non traduites dans le plugin OSM

#16 2024-06-07 07:09:08

ddtddt
Équipe Piwigo
Quetigny (21) - France
2007-07-27
16871

Re: Chaînes de langue non traduites dans le plugin OSM

Katryne a écrit:

Bonjour, bonsoir !

........
Merci d'avance à qui pourrait faire cela ? (déjà posté sur Github)

toi :-P


Vous aimez Piwigo alors n'hésitez pas à participer avec nous, plus d'infos sur la page "Contribuer à Piwigo". Si vous n'avez pas beaucoup de temps et que vous souhaitez nous soutenir vous pouvez aussi le faire par un don.

Hors ligne

#17 2024-06-07 11:14:35

dreamer
Membre
St Cyr/mer (83)
2006-02-26
1082

Re: Chaînes de langue non traduites dans le plugin OSM

Katryne a écrit:

Bonjour, bonsoir !

Malgré les efforts de Dreamer, certaines chaînes de langue ne sont toujours pas localisées. Il ne s'agit pas seulement de traduire, mais il faut créer la possibilité de traduire dans le fichier admin/admin_config.tpl du plugin  (et peut-être ailleurs, parce que je n'y ai pas trouvé tout).

This plugin display geographical location in your gallery usingOpenStreetMap.

Refer to the plugin documentation for additional information. Create an issue for support, or feedback, or feature request.

137 geotagged items in your gallery

Show the map on all pages of the category : Oui Non
This will show a map on all pages of a category, not just in the category's description

Other places the map is displayed

Check out this example with half a hundred different layers to choose from.

No Worldwarp

Merci d'avance à qui pourrait faire cela ? (déjà posté sur Github)

Je regarde ça dans la journée !!


Photos, Musiques, Camping-car,, Vidéo et le tout nouveau Recettes le tout en 14.2.0

Hors ligne

#18 2024-06-07 11:41:35

Katryne
Membre
Le Revest-les-Eaux (Provence)
2016-12-03
1732

Re: Chaînes de langue non traduites dans le plugin OSM

J'ai bien essayé Dreamer, mais c'est un peu compliqué pour moi. La traduction ça irait, mais quand il s'agit de créer les noms des chaînes de langue, je suis perdue.
Merci d'avance.


https://album.chauvigne.info/ v.13.8.0  PHP: 8.2.21
https://balades.comoni.org/  v.14.5.0 PHP: 8.1.29
Système d'exploitation: Linux - Hébergeur 1&1-Ionos - MySQL: 5.7.42
Bibliothèque graphique: External ImageMagick 6.9.11-60

Hors ligne

#19 2024-06-07 15:21:09

dreamer
Membre
St Cyr/mer (83)
2006-02-26
1082

Re: Chaînes de langue non traduites dans le plugin OSM

Re

Bon, je t'ai fait la trad de admin_config.tpl et ça fonctionne chez moi avec la version de OSM 14.C auquel s'ajoute des traductions dans le fichier plugin.lang.php du plugin

admin_config.tpl

Code:

{html_head}
<link rel="stylesheet" href="{$OSM_PATH}fontello/css/osm.css" />
<style>
  {literal}
    .osm_layout {
      text-align: left;
      border: 2px solid rgb(221, 221, 221);
      padding: 1em;
      margin: 1em;
    }
    .content h3{
      text-align:left;
      margin:15px;
    }
    .content .section-title:hover{
      cursor:pointer;
    }
    #right_pannel,
    #left_pannel,
    #main_menu,
    #gpx_map,
    #batch_manager_map{
      display:none;
    }
    label{
      cursor:initial;
    }
    .content h3 ~ h3{
      margin-top:20px;
    }
    FIELDSET{
      padding:0;
      margin:0 30px;
    }
    FORM.properties UL{
      margin:0 15px;
    }
  {/literal}
</style>
{/html_head}

{'This plugin display geographical location in your gallery using'|@translate} <a href="http://www.openstreetmap.org/" target="_blank">OpenStreetMap</a>.
<br/><br/>
{'Refer to the <a href="https://github.com/xbgmsharp/piwigo-openstreetmap/wiki" target="_blanck">plugin documentation</a> for additional information. Create an <a href="https://github.com/xbgmsharp/piwigo-openstreetmap/issues" target="_blanck">issue</a> for support, or feedback, or feature request.'|@translate}

<div class="osm_layout">
  <legend>{'Statistics'|@translate}</legend>
  <ul>
    <li class="update_summary_new">{$NB_GEOTAGGED} {'geotagged items in your gallery'|@translate}</li>
  </ul>
</div>

<form method="post" action="" class="properties">
<h3><i class="icon-picture"></i>{'Display map on picture page'|@translate}</h3>
  <fieldset>
    <legend class="section-title" onclick="toggle_accordion(this)"><i class="icon-plus"></i>{'Configuration if the active theme has a right pannel'|@translate}</legend>
    <ul id="right_pannel">
      <li>
        <label>{'SHOWLOCATION'|@translate} : </label>
        <label><input type="radio" name="osm_right_panel" value="true" {if $right_panel.enabled}checked="checked"{/if}/> {'Yes'|@translate}</label>
        <label><input type="radio" name="osm_right_panel" value="false" {if not $right_panel.enabled}checked="checked"{/if}/> {'No'|@translate}</label>
        <br/><small>{'SHOWLOCATION_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'ADD_BEFORE'|@translate} : </label>
        <select name="osm_add_before">
          {html_options options=$AVAILABLE_ADD_BEFORE selected=$right_panel.add_before}
        </select>
        <br/><small>{'ADD_BEFORE_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'HEIGHT'|@translate} : </label>
        <input type="text" value="{$right_panel.height}" name="osm_height" size="4" required/>
        <br/><small>{'HEIGHT_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'ZOOM'|@translate} : </label>
        <select name="osm_zoom">
          {html_options options=$AVAILABLE_ZOOM selected=$right_panel.zoom}
        </select>
        <br/><small>{'ZOOM_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'RIGHTLINK'|@translate} : </label>
        <input type="text" value="{$right_panel.link}" name="osm_right_link" size="20"/>
        <br/><small>{'RIGHTLINK_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'RIGHTLINKCSS'|@translate} : </label>
        <input type="text" value="{$right_panel.linkcss}" name="osm_right_linkcss" size="60" placeholder="vertical-align: top; color: red;"/>
        <br/><small>{'RIGHTLINKCSS_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'SHOWOSM'|@translate} : </label>
        <label><input type="radio" name="osm_showosm" value="true" {if $right_panel.showosm}checked="checked"{/if}/> {'Yes'|@translate}</label>
        <label><input type="radio" name="osm_showosm" value="false" {if not $right_panel.showosm}checked="checked"{/if}/> {'No'|@translate}</label>
        <br/><small>{'SHOWOSM_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'SHOWLATLON'|@translate} : </label>
        <label><input type="radio" name="osm_showlatlon" value="true" {if $right_panel.showlatlon}checked="checked"{/if}/> {'Yes'|@translate}</label>
        <label><input type="radio" name="osm_showlatlon" value="false" {if not $right_panel.showlatlon}checked="checked"{/if}/> {'No'|@translate}</label>
        <br/><small>{'SHOWLATLON_DESC'|@translate}</small>
      </li>
    </ul>
  </fieldset>
  <fieldset>
    <legend class="section-title" onclick="toggle_accordion(this)"><i class="icon-plus"></i>{'Configuration if the active theme has a left pannel'|@translate}</legend>
    <ul id="left_pannel">
      <li>
        <label>{'SHOWWORLDMAPLEFT'|@translate} : </label>
        <label><input type="radio" name="osm_left_menu" value="true" {if $left_menu.enabled}checked="checked"{/if}/> {'Yes'|@translate}</label>
        <label><input type="radio" name="osm_left_menu" value="false" {if not $left_menu.enabled}checked="checked"{/if}/> {'No'|@translate}</label>
        <br/><small>{'SHOWWORLDMAPLEFT_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'LAYOUT_MAP'|@translate} : </label>
        <select name="osm_left_layout">
          {html_options options=$AVAILABLE_LAYOUT selected=$left_menu.layout}
        </select>
        <br/><small>{'LAYOUT_MAP_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'LEFTLINK'|@translate} : </label>
        <input type="text" value="{$left_menu.link}" name="osm_left_link" size="20"/>
        <br/><small>{'LEFTLINK_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'LEFTPOPUP'|@translate} : </label>
        <select name="osm_left_popup">
          {html_options options=$AVAILABLE_POPUP selected=$left_menu.popup}
        </select>
        <br/><small>{'LEFTPOPUP_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'LEFTPOPUPINFO'|@translate} : </label><br/>
        <div style="padding-left: 25px">
          <input type="checkbox" name="osm_left_popupinfo_name" value="true" {if $left_menu.popupinfo_name}checked="checked"{/if}/> {'POPUPNAME'|@translate}<br />
          <input type="checkbox" name="osm_left_popupinfo_img" value="true" {if $left_menu.popupinfo_img}checked="checked"{/if}/> {'POPUPTHUMB'|@translate}<br />
          <input type="checkbox" name="osm_left_popupinfo_link" value="true" {if $left_menu.popupinfo_link}checked="checked"{/if}/> {'POPUPLINK'|@translate}<br />
          <input type="checkbox" name="osm_left_popupinfo_comment" value="true" {if $left_menu.popupinfo_comment}checked="checked"{/if}/> {'POPUPCOMMENT'|@translate}<br />
          <input type="checkbox" name="osm_left_popupinfo_author" value="true" {if $left_menu.popupinfo_author}checked="checked"{/if}/> {'POPUPAUTHOR'|@translate}
        </div>
        <small>{'LEFTPOPUPINFO_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'AUTO_CENTER'|@translate} : </label>
        <label><input id="autocenter_enabled" type="radio" name="osm_left_autocenter" value="true" {if $left_menu.autocenter}checked="checked"{/if} onchange="autocenter_toggle(this);"/> {'Yes'|@translate}</label>
        <label><input type="radio" name="osm_left_autocenter" value="false" {if not $left_menu.autocenter}checked="checked"{/if} onchange="autocenter_toggle(this);"/> {'No'|@translate}</label>
        <br/><small>{'AUTO_CENTER_HELP'|@translate}</small>
      </li>
      <li id="osm_left_zoom_block">
        <label>{'ZOOM'|@translate} : </label>
        <select name="osm_left_zoom">
          {html_options options=$AVAILABLE_ZOOM selected=$left_menu.zoom}
        </select>
        <br/><small>{'ZOOM_DESC'|@translate}</small>
      </li>
      <li id="osm_left_center_block">
        <label>{'CENTER_MAP'|@translate} : </label>
        <input type="text" value="{$left_menu.center}" name="osm_left_center" size="30" placeholder="0,0"/>
        <br/><small>{'CENTER_MAP_DESC'|@translate}</small>
      </li>
    </ul>
  </fieldset>
  <h3><i class="icon-sitemap"></i>{'Display map on category page'|@translate}</h3>
  <fieldset>
    <legend>{'This will display a map where the category description is'|@translate}</legend>
    <ul>
      <li>
        <label>{'SHOWCMAP'|@translate} : </label>
        <label><input type="radio" name="osm_category_description" value="true" {if $category_description.enabled}checked="checked"{/if}/> {'Yes'|@translate}</label>
        <label><input type="radio" name="osm_category_description" value="false" {if not $category_description.enabled}checked="checked"{/if}/> {'No'|@translate}</label>
        <br/><small>{'SHOWCMAP_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'Show the map on all pages of the category : '|@translate}</label>
        <label><input type="radio" name="osm_category_description" value="true" {if $category_description.enabled}checked="checked"{/if}/> {'Yes'|@translate}</label>
        <label><input type="radio" name="osm_category_description" value="false" {if not $category_description.enabled}checked="checked"{/if}/> {'No'|@translate}</label>
        <br/><small>{"This will show a map on all pages of a category, not just in the category\'s description"|@translate}</small>
      </li>

      <li>
        <label>{'POSITION_INDEX_CMAP'|@translate} : </label>
        <select name="osm_cat_index">
          {html_options options=$AVAILABLE_CAT_INDEX selected=$category_description.index}
        </select>
        <br/><small>{'POSITION_INDEX_CMAP_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'HEIGHT'|@translate} : </label>
        <input type="text" value="{$category_description.height}" name="osm_cat_height" size="4" required placeholder="200"/>
        <br/><small>{'HEIGHT_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'WIDTH'|@translate} : </label>
        <input type="text" value="{$category_description.width}" name="osm_cat_width" size="4" required placeholder="auto"/>
        <br/><small>{'WIDTH_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'DISPLAY_GPX_FILE'|@translate}</label>
        <select name="osm_display_gpx">
          <option value="">--</option>
{foreach from=$AVAILABLE_GPX item=GPX_FILE}
          <option value="{$GPX_FILE.id}" {if $category_description.display_gpx == $GPX_FILE.id} selected {/if}>{$GPX_FILE.name}</option>
{/foreach}
        </select><br>
      </li>
    </ul>
  </fieldset>
  <h3><i class="osm-globe"></i>{'Other places the map is displayed'|@translate}</h3>
  <fieldset>
  
    <legend class="section-title" onclick="toggle_accordion(this)"><i class="icon-plus"></i>{'M_MAP'|@translate}</legend>
    <ul id="main_menu">
      <li>
        <label>{'SHOWMMAP'|@translate} : </label>
        <label><input type="radio" name="osm_main_menu" value="true" {if $main_menu.enabled}checked="checked"{/if}/> {'Yes'|@translate}</label>
        <label><input type="radio" name="osm_main_menu" value="false" {if not $main_menu.enabled}checked="checked"{/if}/> {'No'|@translate}</label>
        <br/><small>{'SHOWMMAP_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'HEIGHT'|@translate} : </label>
        <input type="text" value="{$main_menu.height}" name="osm_menu_height" size="4" required placeholder="200"/>
        <br/><small>{'HEIGHT_DESC'|@translate}</small>
      </li>
    </ul>
  </fieldset>
  <fieldset>
    <legend class="section-title" onclick="toggle_accordion(this)"><i class="icon-plus"></i>{'GPX_MAP'|@translate}</legend>
    <ul id="gpx_map">
      <li>
        <label>{'HEIGHT'|@translate} : </label>
        <input type="text" value="{$gpx.height}" name="osm_gpx_height" size="4" required placeholder="500"/>
        <br/><small>{'HEIGHT_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'GPX_WIDTH'|@translate} : </label>
        <input type="text" value="{$gpx.width}" name="osm_gpx_width" size="4" required placeholder="320"/>
        <br/><small>{'WIDTH_DESC'|@translate}</small>
      </li>
    </ul>
  </fieldset>
  <fieldset>
    <legend class="section-title" onclick="toggle_accordion(this)"><i class="icon-plus"></i>{'Batch Manager'|@translate} {'MAP'|@translate}</legend>
    <ul id="batch_manager_map">
      <li>
        <label>{'HEIGHT'|@translate} {$GLOBAL_MODE}: </label>
        <input type="text" value="{$batch.global_height}" name="osm_batch_global_height" size="4" required placeholder="200"/>
        <br/><small>{'HEIGHT_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'HEIGHT'|@translate} {$SINGLE_MODE}: </label>
        <input type="text" value="{$batch.unit_height}" name="osm_batch_unit_height" size="4" required placeholder="200"/>
        <br/><small>{'HEIGHT_DESC'|@translate}</small>
      </li>
    </ul>
  </fieldset>

  <h3><i class="osm-map"></i>{'G_MAP'|@translate}</h3>
  <fieldset>
    <ul>
      <li>
        <img id="tile_preview" align="right" src="">
        <label>{'BASELAYER'|@translate} : </label>
        <select name="osm_baselayer" id="osm_baselayer" onchange="tile_toggle(this)">
          {html_options options=$AVAILABLE_BASELAYER selected=$map.baselayer}
        </select>
        <br/><small>{'BASELAYER_DESC'|@translate}</small><br/>
        <small>{'Check out <a href="http://leaflet-extras.github.io/leaflet-providers/preview/" target="_blank">this example</a> with half a hundred different layers to choose from.'|@translate}</small>
      </li>
      <div id="custom-tile-toggle" style="visibility:hidden; width:0px; height:0px; display:none;">
        <fieldset>
        <li>
          <label>{'CUSTOMBASELAYER'|@translate} : </label>
          <input type="text" value="{$map.custombaselayer}" name="osm_custombaselayer" id="osm_custombaselayer" size="40"/>
          <br/><small>{'CUSTOMBASELAYER_DESC'|@translate}</small>
        </li>
        <li>
          <label>{'CUSTOMBASELAYERURL'|@translate} : </label>
          <input type="text" value="{$map.custombaselayerurl}" name="osm_custombaselayerurl" id="osm_custombaselayerurl" onchange="tile_toggle(this)" size="40"/>
          <br/><small>{'CUSTOMBASELAYERURL_DESC'|@translate}</small>
        </li>
        </fieldset>
      </div>
      <div id="mapquest-tile-toggle" style="visibility:hidden; width:0px; height:0px; display:none;">
        <fieldset>
        <li>
          <label>{'MAPQUEST_APIKEY'|@translate} : </label>
          <input type="text" value="{$map.mapquest_apikey}" name="osm_mapquestapi" id="osm_mapquestapi" size="40"/>
          <br/><small>{'MAPQUEST_APIKEY_DESC'|@translate} Check out <a href="http://www.mapquestapi.com/" target="_blank">MapQuest API</a></small>
        </li>
        </fieldset>
      </div>
      <li>
        <label>{'NOWORLDWARP'|@translate} : </label>
        <label><input type="radio" name="osm_noworldwarp" value="true" {if $map.noworldwarp}checked="checked"{/if}/> {'Yes'|@translate}</label>
        <label><input type="radio" name="osm_noworldwarp" value="false" {if not $map.noworldwarp}checked="checked"{/if}/> {'No'|@translate}</label>
        <br/><small>{'NOWORLDWARP_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'ATTRLEAFLET'|@translate} : </label>
        <label><input type="radio" name="osm_attrleaflet" value="true" {if $map.attrleaflet}checked="checked"{/if}/> {'Yes'|@translate}</label>
        <label><input type="radio" name="osm_attrleaflet" value="false" {if not $map.attrleaflet}checked="checked"{/if}/> {'No'|@translate}</label>
        <br/><small>{'ATTRLEAFLET_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'ATTRIMAGERY'|@translate} : </label>
        <label><input type="radio" name="osm_attrimagery" value="true" {if $map.attrimagery}checked="checked"{/if}/> {'Yes'|@translate}</label>
        <label><input type="radio" name="osm_attrimagery" value="false" {if not $map.attrimagery}checked="checked"{/if}/> {'No'|@translate}</label>
        <br/><small>{'ATTRIMAGERY_DESC'|@translate}</small>
      </li>
      <li>
        <label>{'ATTRPLUGIN'|@translate} : </label>
        <label><input type="radio" name="osm_attrplugin" value="true" {if $map.attrplugin}checked="checked"{/if}/> {'Yes'|@translate}</label>
        <label><input type="radio" name="osm_attrplugin" value="false" {if not $map.attrplugin}checked="checked"{/if}/> {'No'|@translate}</label>
        <br/><small>{'ATTRPLUGIN_DESC'|@translate}</small>
      </li>
    </ul>
  </fieldset>

  <h3><i class="osm-pin"></i>{'H_PIN'|@translate}</h3>
  <fieldset>
    <ul>
      <li>
        <img id="pin_preview" align="left" src="">
        <label >{'PIN'|@translate} : </label>
        <select name="osm_pin" id="osm_pin" onchange="pin_toggle(this)">
          {html_options options=$AVAILABLE_PIN selected=$pin.pin}
        </select>
        <br/><small>{'PIN_DESC'|@translate}</small>
      </li>
      <div id="custom-pin-toggle" style="visibility:hidden; width:0px; height:0px; display:none;">
        <li>
          <label>{'PINPATH'|@translate} : </label>
          <input type="text" value="{$pin.pinpath}" name="osm_pinpath" size="40"/>
          <br/><small>{'PINPATH_DESC'|@translate}</small>
        </li>
        <li>
          <label>{'PINSIZE'|@translate} : </label>
          <input type="text" value="{$pin.pinsize}" name="osm_pinsize" size="6"/>
          <br/><small>{'PINSIZE_DESC'|@translate}</small>
        </li>
        <li>
          <label>{'PINSHADOWPATH'|@translate} : </label>
          <input type="text" value="{$pin.pinshadowpath}" name="osm_pinshadowpath" size="40"/>
          <br/><small>{'PINSHADOWPATH_DESC'|@translate}</small>
        </li>
        <li>
          <label>{'PINSHADOWSIZE'|@translate} : </label>
          <input type="text" value="{$pin.pinshadowsize}" name="osm_pinshadowsize" size="4"/>
          <br/><small>{'PINSHADOWSIZE_DESC'|@translate}</small>
        </li>
        <li>
          <label>{'PINOFFSET'|@translate} : </label>
          <input type="text" value="{$pin.pinoffset}" name="osm_pinoffset" size="4"/>
          <br/><small>{'PINOFFSET_DESC'|@translate}</small>
        </li>
        <li>
          <label>{'PINPOPUPOFFSET'|@translate} : </label>
          <input type="text" value="{$pin.pinpopupoffset}" name="osm_pinpopupoffset" size="4"/>
          <br/><small>{'PINPOPUPOFFSET_DESC'|@translate}</small>
        </li>
      </div>
      </ul>
    </fieldset>

  <p>
    <input class="submit" type="submit" value="{'Save Settings'|@translate}" name="submit"/>
  </p>
</form>

{literal}
<script type="text/javascript">
function tile_toggle()
{
  var div_custom = document.getElementById("custom-tile-toggle");
  var div_mapquest = document.getElementById("mapquest-tile-toggle");
  var select = document.getElementById("osm_baselayer").value;
  //alert(select.selectedIndex);
  if (select == "custom") // If custom
  {
    div_custom.removeAttribute("style");
    div_mapquest.setAttribute("style","visibility:hidden; width:0px; height:0px; display:none;");
  } else if (select.startsWith("mapquest")) // If mapquest
  {
    div_mapquest.removeAttribute("style");
    div_custom.setAttribute("style","visibility:hidden; width:0px; height:0px; display:none;");
  } else {
    div_custom.setAttribute("style","visibility:hidden; width:0px; height:0px; display:none;");
    div_mapquest.setAttribute("style","visibility:hidden; width:0px; height:0px; display:none;");
  }
  tile_preview();
}

function pin_toggle()
{
  var div = document.getElementById("custom-pin-toggle");
  var select = document.getElementById("osm_pin");
  //alert(select.selectedIndex);
  if (select.selectedIndex == 9) // If custom
  {
    div.removeAttribute("style");
  } else {
    div.setAttribute("style","visibility:hidden; width:0px; height:0px; display:none;");
  }
  pin_preview();
}

function autocenter_toggle()
{
  var radio = document.getElementById("autocenter_enabled");
  var zoom_block = document.getElementById("osm_left_zoom_block");
  var center_block = document.getElementById("osm_left_center_block");
  if (radio.checked) // If autocenter
  {
    zoom_block.setAttribute("style", "display:none;");
    center_block.setAttribute("style", "display:none;");
  } else {
    zoom_block.removeAttribute("style");
    center_block.removeAttribute("style");
  }
}

function tile_preview()
{
  var select = document.getElementById("osm_baselayer");
  var custom_url = document.getElementById("osm_custombaselayerurl").value;
  if ( custom_url ) {
    custom_url = custom_url.replace('{z}', '5').replace('{x}', '15').replace('{y}', '11');
  } else {
    custom_url = 'NULL';
  }
  baselayer = new Array(
    '{/literal}{$OSM_PATH}{literal}leaflet/icons/preview_openstreetmap_mapnik.png',
    '{/literal}{$OSM_PATH}{literal}leaflet/icons/preview_openstreetmap_blackandwhite.png',
    '{/literal}{$OSM_PATH}{literal}leaflet/icons/preview_openstreetmap_fr.png',
    '{/literal}{$OSM_PATH}{literal}leaflet/icons/preview_openstreetmap_de.png',
    '{/literal}{$OSM_PATH}{literal}leaflet/icons/preview_openstreetmap_fr.png',
    '{/literal}{$OSM_PATH}{literal}leaflet/icons/preview_mapquest.png',
    '{/literal}{$OSM_PATH}{literal}leaflet/icons/preview_mapquest_aerial.png',
    '{/literal}{$OSM_PATH}{literal}leaflet/icons/preview_toner.png',
    custom_url,
    '{/literal}{$OSM_PATH}{literal}leaflet/icons/preview_Esri.WorldTopoMap.png'
  );
  //alert(baselayer[select.selectedIndex]);
  var img_elem = document.getElementById("tile_preview");
  if (baselayer[select.selectedIndex] == "NULL")
  {
    img_elem.setAttribute("style","visibility:hidden; width:0px; height:0px; display:none;");
  } else {
    img_elem.removeAttribute("style");
    img_elem.src = baselayer[select.selectedIndex];
  }
}

function pin_preview()
{
  var select = document.getElementById("osm_pin");
  pins = new Array(
    'NULL',
    '{/literal}{$OSM_PATH}{literal}leaflet/images/marker-blue.png',
    '{/literal}{$OSM_PATH}{literal}leaflet/images/marker-green.png',
    '{/literal}{$OSM_PATH}{literal}leaflet/images/marker-red.png',
    '{/literal}{$OSM_PATH}{literal}leaflet/images/leaf-green.png',
    '{/literal}{$OSM_PATH}{literal}leaflet/images/leaf-orange.png',
    '{/literal}{$OSM_PATH}{literal}leaflet/images/leaf-red.png',
    '{/literal}{$OSM_PATH}{literal}leaflet/images/mapicons-blue.png',
    '{/literal}{$OSM_PATH}{literal}leaflet/images/mapicons-green.png',
    'NULL',
    'NULL'
  );
  //alert(pins[select.selectedIndex]);
  var img_elem = document.getElementById("pin_preview");
  if (pins[select.selectedIndex] == "NULL")
  {
    img_elem.setAttribute("style","visibility:hidden; width:0px; height:0px; display:none;");
  } else {
    img_elem.removeAttribute("style");
    img_elem.setAttribute("style","padding-right: 5px;");
    img_elem.src = pins[select.selectedIndex];
  }
}

function toggle_accordion(clicked_element){
  console.log($(clicked_element));
  $(clicked_element).next().toggle();
  var icon = $(clicked_element).children("i");
  icon.toggleClass("icon-plus");
  icon.toggleClass("osm-minus");
}

window.onload = pin_preview();
window.onload = tile_preview();
window.onload = autocenter_toggle()

</script>
{/literal}

Les trads à ajouter

Code:

$lang['Show the map on all pages of the category : '] = "Afficher la carte sur toutes les pages de la catégorie : ";
$lang["This will show a map on all pages of a category, not just in the category's description"] = "Cela affichera une carte sur toutes les pages d\'une catégorie, pas seulement dans la description de la catégorie.";
$lang["Other places the map is displayed"] = "Autres endroits où la carte est affichée";
$lang['This plugin display geographical location in your gallery using'] = "Ce plugin affiche la localisation géographique dans votre galerie en utilisant";
$lang['Refer to the <a href="https://github.com/xbgmsharp/piwigo-openstreetmap/wiki" target="_blanck">plugin documentation</a> for additional information. Create an <a href="https://github.com/xbgmsharp/piwigo-openstreetmap/issues" target="_blanck">issue</a> for support, or feedback, or feature request.'] = "Reportez-vous à la <a href=\"https://github.com/xbgmsharp/piwigo-openstreetmap/wiki\" target=\"_blanck\">documentation du plug-in</a> pour plus d\'informations. Créez un <a href=\"https://github.com/xbgmsharp/piwigo-openstreetmap/issues\" target=\"_blanck\">problème</a> pour obtenir de l\'aide, des commentaires ou une demande de fonctionnalité.";
$lang['geotagged items in your gallery'] = "éléments géolocalisés dans votre galerie";
$lang['Display map on category page'] = "Afficher la carte sur la page photo";
$lang['Configuration if the active theme has a right pannel'] = "La configuration du thème actif a un panneau de droite";
$lang['Configuration if the active theme has a left pannel'] = "La configuration du thème actif a un panneau de gauche";
$lang['This will display a map where the category description is'] = "Cela affichera une carte où la description de la catégorie est";
$lang["This will show a map on all pages of a category, not just in the category\'s description"] = "Cela affichera une carte sur toutes les pages d'une catégorie, pas seulement dans la description de la catégorie.";
$lang['Check out <a href="http://leaflet-extras.github.io/leaflet-providers/preview/" target="_blank">this example</a> with half a hundred different layers to choose from.'] = "Cela affichera une carte sur toutes les pages d\'une catégorie, pas seulement dans la description de la catégorie.";

Par contre, je n'ai pas retrouver certaines de tes demandes

A+


Photos, Musiques, Camping-car,, Vidéo et le tout nouveau Recettes le tout en 14.2.0

Hors ligne

#20 2024-06-09 22:44:35

k5
Équipe Piwigo
La reppe
2014-01-26
1351

Re: Chaînes de langue non traduites dans le plugin OSM

Bonjour

est-ce qu'on peut ajouter une variable dans piwigo translate ? je sais que j'ai un compte mais j'ai perdu mon mot de passe.

A très vite


Piwigo 14.4 VM alpneLinux php 8.4
Piwigo 14.4 php 8.4 -- 8.4 mysql -- ImageMagick 7.1.1.34

Hors ligne

#21 2024-06-09 23:09:01

Katryne
Membre
Le Revest-les-Eaux (Provence)
2016-12-03
1732

Re: Chaînes de langue non traduites dans le plugin OSM

Je n'ai pas encore eu le temps de tester, Dreamer. Mais plus que dans LFE, c'est dans le fichier de langue d'OSM qu'il faut rajouter les chaînes.
K5, il y a plus d'une variable de langue à ajouter, mais ça ne sert à rien tant que le plugin lui-même n'a pas évolué. Il y a du code à modifier. Sinon l'ensemble relève du fork.


https://album.chauvigne.info/ v.13.8.0  PHP: 8.2.21
https://balades.comoni.org/  v.14.5.0 PHP: 8.1.29
Système d'exploitation: Linux - Hébergeur 1&1-Ionos - MySQL: 5.7.42
Bibliothèque graphique: External ImageMagick 6.9.11-60

Hors ligne

#22 2024-06-10 00:19:57

dreamer
Membre
St Cyr/mer (83)
2006-02-26
1082

Re: Chaînes de langue non traduites dans le plugin OSM

Katryne a écrit:

Je n'ai pas encore eu le temps de tester, Dreamer. Mais plus que dans LFE, c'est dans le fichier de langue d'OSM qu'il faut rajouter les chaînes.
K5, il y a plus d'une variable de langue à ajouter, mais ça ne sert à rien tant que le plugin lui-même n'a pas évolué. Il y a du code à modifier. Sinon l'ensemble relève du fork.

C'est ce que t'ai écris : plugin.lang.php du plugin


Photos, Musiques, Camping-car,, Vidéo et le tout nouveau Recettes le tout en 14.2.0

Hors ligne

#23 2024-06-10 06:04:31

Katryne
Membre
Le Revest-les-Eaux (Provence)
2016-12-03
1732

Re: Chaînes de langue non traduites dans le plugin OSM

okie okie, Dreamer, j'avais pas les zyeux en face des trous. Merci.


https://album.chauvigne.info/ v.13.8.0  PHP: 8.2.21
https://balades.comoni.org/  v.14.5.0 PHP: 8.1.29
Système d'exploitation: Linux - Hébergeur 1&1-Ionos - MySQL: 5.7.42
Bibliothèque graphique: External ImageMagick 6.9.11-60

Hors ligne

#24 2024-06-10 06:29:00

ddtddt
Équipe Piwigo
Quetigny (21) - France
2007-07-27
16871

Re: Chaînes de langue non traduites dans le plugin OSM

Bonjour

@dreamer tu peux faire un pull request sur github ou envoyer les modification à Hannah


Vous aimez Piwigo alors n'hésitez pas à participer avec nous, plus d'infos sur la page "Contribuer à Piwigo". Si vous n'avez pas beaucoup de temps et que vous souhaitez nous soutenir vous pouvez aussi le faire par un don.

Hors ligne

#25 2024-06-10 11:01:07

dreamer
Membre
St Cyr/mer (83)
2006-02-26
1082

Re: Chaînes de langue non traduites dans le plugin OSM

Salut

Bon, j'ai essayé, mais ça, c'est le plantage, alors si quelqu'un veut bien le faire à ma place !

A=


Photos, Musiques, Camping-car,, Vidéo et le tout nouveau Recettes le tout en 14.2.0

Hors ligne

#26 2024-06-10 13:07:30

Katryne
Membre
Le Revest-les-Eaux (Provence)
2016-12-03
1732

Re: Chaînes de langue non traduites dans le plugin OSM

Décidément je ne comprendrais jamais rien à Github.
J'avais signalé le souci il y a 3 semaines. Aujourd'hui xbgmsharp y répond en demandant les chaînes de langue et avant que je puisse réponde, il recommande de passer par Piwigo translate et ferme le signalement. J'ai quand même pu indiquer en réponse le lien vers le présent fil de forum.
Sur Piwigo translate, je ne suis que traducteur, je n'ai pas la possibilité de créer de nouvelles chaînes de langue.
Actuellement le plugin OSM est indiqué comme traduit à 100 % pour le français sur Piwigo translate.


https://album.chauvigne.info/ v.13.8.0  PHP: 8.2.21
https://balades.comoni.org/  v.14.5.0 PHP: 8.1.29
Système d'exploitation: Linux - Hébergeur 1&1-Ionos - MySQL: 5.7.42
Bibliothèque graphique: External ImageMagick 6.9.11-60

Hors ligne

#27 2024-06-10 13:46:29

ddtddt
Équipe Piwigo
Quetigny (21) - France
2007-07-27
16871

Re: Chaînes de langue non traduites dans le plugin OSM

Bonjour,

On ne peux pas créer les clés de langue sur piwigo translate il lit ce qui est disponible sur github


Vous aimez Piwigo alors n'hésitez pas à participer avec nous, plus d'infos sur la page "Contribuer à Piwigo". Si vous n'avez pas beaucoup de temps et que vous souhaitez nous soutenir vous pouvez aussi le faire par un don.

Hors ligne

#28 2024-06-10 15:18:47

Katryne
Membre
Le Revest-les-Eaux (Provence)
2016-12-03
1732

Re: Chaînes de langue non traduites dans le plugin OSM

J'espère que les différents intervenants qui interviennent habituellement dans ce genre de situation font faire en sorte que leurs interventions résolvent le problème. C'est trop compliqué pour les simples utilisateurs, comme je suis, et je laisse la main.


https://album.chauvigne.info/ v.13.8.0  PHP: 8.2.21
https://balades.comoni.org/  v.14.5.0 PHP: 8.1.29
Système d'exploitation: Linux - Hébergeur 1&1-Ionos - MySQL: 5.7.42
Bibliothèque graphique: External ImageMagick 6.9.11-60

Hors ligne

#29 2024-06-11 06:56:07

ddtddt
Équipe Piwigo
Quetigny (21) - France
2007-07-27
16871

Re: Chaînes de langue non traduites dans le plugin OSM

Bonjour

je dirais si le pull request n'est pas facile d'envoyer les fichier par mail à xbgmsharp


Vous aimez Piwigo alors n'hésitez pas à participer avec nous, plus d'infos sur la page "Contribuer à Piwigo". Si vous n'avez pas beaucoup de temps et que vous souhaitez nous soutenir vous pouvez aussi le faire par un don.

Hors ligne

#30 2024-06-11 10:52:55

Hannah
Équipe Piwigo
2019-08-20
13

Re: Chaînes de langue non traduites dans le plugin OSM

Bonjour,

J'ai fait les modifications ce matin pour avoujouter les clés de traductions, avec la traduction en anglais en français.

De mon côté je vois bien toute la partie de l'administration maintenant en Français, mais n'hésitez pas à me dire si j'en ai oublié

Hors ligne

  •  » Styles
  •  » Chaînes de langue non traduites dans le plugin OSM

Pied de page des forums

Propulsé par FluxBB

github twitter newsletter Faire un don Piwigo.org © 2002-2024 · Contact