application label
 @param [String] lang language code like 'ja', 'cn', ...
 @return [String] application label string(if resouce is provided), or label resource id
 @return [nil] when label is not found
 @since 0.5.1
325057
def label(lang=nil)
      label = @doc.elements['/manifest/application'].attributes['label']
      if label.nil?
        # application element has no label attributes.
        # so looking for activites that has label attribute.
        activities = @doc.elements['/manifest/application'].find{|e| e.name == 'activity' && !e.attributes['label'].nil? }
        label = activities.nil? ? nil : activities.first.attributes['label']
      end
      unless @rsc.nil?
        if /^@(\w+\/\w+)|(0x[0-9a-fA-F]{8})$/ =~ label
          opts = {}
          opts[:lang] = lang unless lang.nil?
          label = @rsc.find(label, opts)
        end
      end
      label
    end
488894
def get_application_logo_label(self):
        

        logo_label = QLabel()
        logo_label.setObjectName("Application_Logo_label")
        logo_label.setPixmap(QPixmap(umbra.ui.common.get_resource_path(UiConstants.logo_image)))
        return logo_label
287530
public static String getLabel(Class<?> clazz, String label) {
		Language language=getThreadLocalLanguage(null);
		
		if (language==null){
			return label;
		} else {
			return getLabel(language, clazz.getName(), label);
		}
	}
1093763
public LabelCache labels(long applicationId)
    {
        LabelCache cache = labels.get(applicationId);
        if(cache == null)
            labels.put(applicationId, cache = new LabelCache(applicationId));
        return cache;
    }
161232
def label_with_id(label_id, options = {})
      if options && options[:index] then
        label(:id => label_id.to_s, :index => options[:index]).text
      else
        label(:id, label_id.to_s).text
      end
    end
124465
def language(self, language_code=None):
        
        if language_code is None:
            language_code = appsettings.PARLER_LANGUAGES.get_default_language()

        self._language = language_code
        return self
1100669
def listing_for_language(language)
      ensure_active_edit!

      begin
        result = client.get_listing(
          current_package_name,
          current_edit.id,
          language
        )

        return Listing.new(self, language, result)
      rescue Google::Apis::ClientError => e
        return Listing.new(self, language) if e.status_code == 404 # create a new empty listing
        raise
      end
    end
780995
def render_app_label(context, app, fallback=""):
    
    try:
        text = app['app_label']
    except KeyError:
        text = fallback
    except TypeError:
        text = app
    return text
106888
public function getLabel()
    {
        if ($this->locale && array_key_exists($this->locale, $this->localeLabels)) {
            return $this->localeLabels[$this->locale];
        }
        return $this->label;
    }
759690
def _query_label(self, loc):
        
        # Try to get label from cache
        ell = self.cached_labels_[loc]

        if np.isnan(ell):
            # Label has not been cached. Need to query oracle
            oracle_arg = self.identifiers[loc]
            ell = self.oracle(oracle_arg)
            if ell not in [0, 1]:
                raise Exception("Oracle provided an invalid label.")
            #TODO Gracefully handle errors from oracle?
            self._queried_oracle[self.t_] = True
            self.cached_labels_[loc] = ell

        return ell
53227
def label(name)
      labels = workbook.defined_names
      return [nil, nil, nil] if labels.empty? || !labels.key?(name)

      [labels[name].row, labels[name].col, labels[name].sheet]
    end
1317841
def version_name(lang=nil)
      vername = @doc.root.attributes['versionName']
      unless @rsc.nil?
        if /^@(\w+\/\w+)|(0x[0-9a-fA-F]{8})$/ =~ vername
          opts = {}
          opts[:lang] = lang unless lang.nil?
          vername = @rsc.find(vername, opts)
        end
      end
      vername
    end
1083030
public String getLabel(final String key, final Object... params) {
		return getLabel(JKLocale.getDefaultLocale(), key, params);
	}
249332
def get_language():
    
    from parler import appsettings
    language = dj_get_language()
    if language is None and appsettings.PARLER_DEFAULT_ACTIVATE:
        return appsettings.PARLER_DEFAULT_LANGUAGE_CODE
    else:
        return language
342418
def language(lang_code):
    ''''''
    ctx = None
    if not request:
        ctx = current_app.test_request_context()
        ctx.push()
    backup = g.get('lang_code')
    g.lang_code = lang_code
    refresh()
    yield
    g.lang_code = backup
    if ctx:
        ctx.pop()
    refresh()
455827
def trla(label, desc = "", tokens = {}, options = {})
      tra(label, desc, tokens, options.merge(:skip_decorations => true))
    end
24308
@Nullable
  @CheckForNull
  public String getLabel(String languageCode) {
    String i18nString = getString(getI18nAttributeName(LABEL, languageCode));
    return i18nString != null ? i18nString : getLabel();
  }