Enable or disable the converter translation.
@param bEnableTranslation If true, enable translation.
@return The old translation value.
320468
public boolean setEnableTranslation(boolean bEnableTranslation)
    {
        boolean bOldTranslation = m_bEnableTranslation;
        m_bEnableTranslation = false;
        LinkedConverter converter = this;
        while (converter != null)
        {
            if (converter.getNextConverter() instanceof LinkedConverter)
            {
                converter = (LinkedConverter)((LinkedConverter)converter).getNextConverter();
                if (converter instanceof MultipleFieldConverter)
                    ((MultipleFieldConverter)converter).setEnableTranslation(bEnableTranslation);
            }
            else
                converter = null;
        }
        m_bEnableTranslation = bEnableTranslation;
        return bOldTranslation;
    }
1130951
public void setTextTranslateAnchor(@Property.TEXT_TRANSLATE_ANCHOR String value) {
    PropertyValue propertyValue = textTranslateAnchor(value);
    constantPropertyUsageMap.put(PROPERTY_TEXT_TRANSLATE_ANCHOR, propertyValue);
    layer.setProperties(propertyValue);
  }
654384
public DocumentTranslator getDocumentTranslator() {
        if (translator == null) {
            // We don't want the connectors to use a translator that converts large strings to binary values that are
            // managed within ModeShape's binary store. Instead, all of the connector-created string property values
            // should be kept as strings ...
            translator = repository.repositoryCache().getDocumentTranslator().withLargeStringSize(Long.MAX_VALUE);
        }
        return translator;
    }
284661
public function joinFallbackTranslation(callable $callable = null)
    {
        if ($this->translatableLang->langId() == 'en') {
            return $this;
        }

        $selects = [];
        $translaTable = $this->getTable() . $this->translatableTableSuffix;
        $fields = $this->getRepository()->getCache()->getTableFields($translaTable);
        $translatableKey = '`' . $translaTable . '`.`id`';
        foreach ($fields as $field) {
            if (in_array($field, ['id', $this->translatableLanguageField])) {
                continue;
            }

            $translatableField = '`' . $translaTable . '`.`' . $field . '`';
            $fallbackField = '`' . $translaTable . '_f`.`' . $field . '`';
            $selects[] = 'IF(' . $translatableKey . ', ' . $translatableField . ', ' . $fallbackField . ') AS `' .
                $field . '`';
        }

        $relation = $this->join($this->translationsFallback($callable));

        $relation->getQuery()->addSelect($selects);

        return $relation;
    }
562747
public function getTranslationFile()
    {
        $returnValue = null;

        
    	if ($this->translationFile != null) {
        	return $this->translationFile;
        }
        else {
        	throw new tao_helpers_translation_TranslationException('No TranslationFile to retrieve.');
        }
        

        return $returnValue;
    }
506197
public void setEnabled(boolean bEnableFlag)   // Init this field override for other value
    {
        if (m_fldTarget != null)
            m_fldTarget.setEnabled(bEnableFlag);
        else if (m_sField != null)
            m_sField.setEnabled(bEnableFlag);
        else
        {   // No field means enable/disable the key fields.
            Record table = this.getOwner();
            boolean bDisableOnFound = false;
            int iLastField = table.getFieldCount() + DBConstants.MAIN_FIELD - 1;
            for (int iFieldSeq = DBConstants.MAIN_FIELD; iFieldSeq <= iLastField; iFieldSeq++)
            {
                BaseField field = table.getField(iFieldSeq);
                BaseListener listener = field.getListener(MainReadOnlyHandler.class.getName());
                if (listener == null) // Don't touch if this has a read second listener on it!
                    field.setEnabled(bEnableFlag);
                if (field.getListener(DisableOnFieldHandler.class.getName()) != null)
                    bDisableOnFound = true;
            }
            if (bDisableOnFound)
            {   // These field listeners need to be notified that their fields have been enabled/disabled
                for (int iFieldSeq = DBConstants.MAIN_FIELD; iFieldSeq <= iLastField; iFieldSeq++)
                {
                    BaseField field = table.getField(iFieldSeq);
                    DisableOnFieldHandler listener = (DisableOnFieldHandler)field.getListener(DisableOnFieldHandler.class.getName());
                    if (listener != null)
                        listener.fieldChanged(DBConstants.DISPLAY, DBConstants.SCREEN_MOVE);    // I can do this because I know that this listener will not modify anything.
                }
                
            }
        }
    }
329320
public void removeTranslation(String locale) {
        LocaleCodeSpecification.assertCode(locale);

        Translation translation = getTranslation(locale);
        if (translation != null) {
            this.translations.remove(translation.getId());
        }
    }
358089
public static Converter getConverter(FacesContext fc, ValueHolder vh) {
		// explicit converter
		Converter converter = vh.getConverter();

		// try to find implicit converter
		if (converter == null) {
			ValueExpression expr = ((UIComponent) vh).getValueExpression("value");
			if (expr != null) {
				Class<?> valueType = expr.getType(fc.getELContext());
				if (valueType != null) {
					converter = fc.getApplication().createConverter(valueType);
				}
			}
		}

		return converter;
	}
1096574
@Override
    public <T> Optional<LocalProperty<T>> translate(Function<E, Optional<T>> translator)
    {
        return translator.apply(column)
                .map(translated -> new SortingProperty<>(translated, order));
    }
327941
public void init(Converter converter, Converter converterAlt)
    {
        m_bEnableTranslation = true;
        m_bSetData = false;
        super.init(converter);
        if (converterAlt != null)
            this.addConverterToPass(converterAlt);
    }
194493
@Override
    public String getJvmConverter(String encoding) {
        if (null != encoding) {
            String converter = this.converterMap.get(encoding.toLowerCase());
            if (null != converter) {
                return converter;
            }
        }
        return encoding;
    }
556871
public function getTranslator()
    {
        if ($this->translatorIsDisabled()) {
            return null;
        }

        if (null === $this->_translator) {
            return self::getDefaultTranslator();
        }

        return $this->_translator;
    }
674859
TypeConverter getDeclaredTypeConverter(MapOnly mapOnly, TypeConverter fallback) {
        if (null != mapOnly) {
            TypeConverter typeConverter = getDeclaredTypeConverter(
                    mapOnly.typeConverterClass().getName(), mapOnly.typeConverter());
            if (null != typeConverter) {
                return typeConverter;
            }
        }
        return fallback;
    }
1190465
public function setEnabled(string $enabled = "T") : CNabuDataObject
    {
        if ($enabled === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$enabled")
            );
        }
        $this->setValue('nb_site_lang_enabled', $enabled);
        
        return $this;
    }
1124910
static PrefsTransform getUtilTransform(TypeName type) {
		String typeName = type.toString();

		// Integer.class.getCanonicalName().equals(typeName)
		if (Date.class.getCanonicalName().equals(typeName)) {
			return new DatePrefsTransform();
		}
		if (Locale.class.getCanonicalName().equals(typeName)) {
			return new LocalePrefsTransform();
		}
		if (Currency.class.getCanonicalName().equals(typeName)) {
			return new CurrencyPrefsTransform();
		}
		if (Calendar.class.getCanonicalName().equals(typeName)) {
			return new CalendarPrefsTransform();
		}
		if (TimeZone.class.getCanonicalName().equals(typeName)) {
			return new TimeZonePrefsTransform();
		}
		return null;
	}
260169
public function getWritable($key): WritableTranslationValueInterface
    {
        if (null === $unit = $this->xliff->searchTranslationUnit($key)) {
            throw new TranslationNotFoundException($key, $this);
        }

        return new WritableXliffTranslationValue($this, $unit);
    }
346428
private String translate(final Object messageObject) {
		if (messageObject instanceof Message) {
			Message message = (Message) messageObject;
			return I18nUtilities.format(locale, message.getMessage(), (Object[]) message.getArgs());
		} else if (messageObject != null) {
			return I18nUtilities.format(locale, messageObject.toString());
		}

		return null;
	}