src/main/java/com/teamunify/i18n/I.java
public static String imageURL(String url, String omitForLanguage) {
    if (languageProvider.vend().locale.getLanguage().equals(omitForLanguage) || url == null || url.length() == 0)
      return url;

    int iIdx = url.lastIndexOf(".");

    if (iIdx == -1)
      return url;
    else
      return url.substring(0, iIdx) + "_" + languageProvider.vend().locale.getLanguage() + url.substring(iIdx);
  }
/**
   * localized the image name: xxxx_de.png; xxxx_fr.png;
   * <p/>
   * <p/>
   * <b>IMPORTANT NOTE:</b> In general, text should not be embedded in images, as it makes the application much harder
   * to localize (you must hire a graphic artist to fix all of the images, in addition to the translator needed to
   * translate the text.
   * <p/>
   * <p/>
   * A better approach is to leave the text out of the image, and use CSS (or an image API in Java) to overlay text on
   * the image. This way, you can localize the images with simple translations.
   * <p/>
   * <p/>
   * This function does NO filesystem check for the existence of images, it just morhs strings.
   *
   * @param url             A string ending with a . suffix (e.g. x.png)
   * @param omitForLanguage The language code that the application uses internally, and for which no suffix should be added.
   * @return A string with the locale inserted (e.g. x_fr.png)
   */
localized the image name: xxxx_de.png; xxxx_fr.png;


IMPORTANT NOTE: In general, text should not be embedded in images, as it makes the application much harder
to localize (you must hire a graphic artist to fix all of the images, in addition to the translator needed to
translate the text.


A better approach is to leave the text out of the image, and use CSS (or an image API in Java) to overlay text on
the image. This way, you can localize the images with simple translations.


This function does NO filesystem check for the existence of images, it just morhs strings.

@param url             A string ending with a . suffix
@param omitForLanguage The language code that the application uses internally, and for which no suffix should be added.
@return A string with the locale inserted
localized the image name : xxxx_de . png ; xxxx_fr . png ; IMPORTANT NOTE : In general text should not be embedded in images as it makes the application much harder to localize ( you must hire a graphic artist to fix all of the images in addition to the translator needed to translate the text . A better approach is to leave the text out of the image and use CSS ( or an image API in Java ) to overlay text on the image . This way you can localize the images with simple translations . This function does NO filesystem check for the existence of images it just morhs strings . @param url A string ending with a . suffix @param omitForLanguage The language code that the application uses internally and for which no suffix should be added . @return A string with the locale inserted
public static String imageURL(String url, String omitForLanguage) {
    if (languageProvider.vend().locale.getLanguage().equals(omitForLanguage) || url == null || url.length() == 0)
      return url;
    int iIdx = url.lastIndexOf(".");
    if (iIdx == -1)
      return url;
    else
      return url.substring(0, iIdx) + "_" + languageProvider.vend().locale.getLanguage() + url.substring(iIdx);
  }
public static String imageURL ( String url , String omitForLanguage ) { if ( languageProvider . vend ( ) . locale . getLanguage ( ) . equals ( omitForLanguage ) || url == null || url . length ( ) == 0 ) return url ; int iIdx = url . lastIndexOf ( "." ) ; if ( iIdx == - 1 ) return url ; else return url . substring ( 0 , iIdx ) + "_" + languageProvider . vend ( ) . locale . getLanguage ( ) + url . substring ( iIdx ) ; }
localized the image name: xxxx_de.png; xxxx_fr.png;
 <p/>
 <p/>
 <b>IMPORTANT NOTE:</b> In general, text should not be embedded in images, as it makes the application much harder
 to localize (you must hire a graphic artist to fix all of the images, in addition to the translator needed to
 translate the text.
localized the image name : xxxx_de . png ; xxxx_fr . png ; <p / > <p / > <b > IMPORTANT NOTE : < / b > In general text should not be embedded in images as it makes the application much harder to localize ( you must hire a graphic artist to fix all of the images in addition to the translator needed to translate the text .