code: public static String getLocalizedId(String id, Locale locale) {
          String locstr = locale == null ? "" : ("_" + locale.toString());
          return id + locstr;
      }
docs: Adds locale information to a help module id.
  
  @param id Help module id.
  @param locale Locale (may be null).
  @return The id with locale information appended.