i18n-api/src/main/java/com/blackypaw/mc/i18n/DatabaseLocaleResolver.java
/**
	 * Attempts to insert a new row into the locales table.
	 *
	 * @param key The key to which the given locale should be stored
	 * @param locale The locale to be stored
	 *
	 * @throws SQLException Thrown in case the underlying MySQL query failed
	 */
Attempts to insert a new row into the locales table.
@param key The key to which the given locale should be stored
@param locale The locale to be stored

@throws SQLException Thrown in case the underlying MySQL query failed
Attempts to insert a new row into the locales table . @param key The key to which the given locale should be stored @param locale The locale to be stored @throws SQLException Thrown in case the underlying MySQL query failed
private void insertPlayerLocale( UUID key, Locale locale ) throws SQLException {
		try ( PreparedStatement insert = this.connection.prepareStatement( "INSERT INTO `" + this.localeTable + "` (`uuid`, `locale`) VALUES(?, ?);" ) ) {
			locale = this.i18n.getFallbackLocale();
			insert.setString( 1, key.toString() );
			insert.setString( 2, locale.getLanguage() );
			insert.executeUpdate();
		}
	}
private void insertPlayerLocale ( UUID key , Locale locale ) throws SQLException { try ( PreparedStatement insert = this . connection . prepareStatement ( "INSERT INTO `" + this . localeTable + "` (`uuid`, `locale`) VALUES(?, ?);" ) ) { locale = this . i18n . getFallbackLocale ( ) ; insert . setString ( 1 , key . toString ( ) ) ; insert . setString ( 2 , locale . getLanguage ( ) ) ; insert . executeUpdate ( ) ; } }
Attempts to insert a new row into the locales table.
Attempts to insert a new row into the locales table .