Open roolian opened 5 months ago
Case sensitive can be set on column (for mysql) in the migration:
Schema::create('language_lines', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('group')->index();
$table->text('key')->collation('latin7_general_cs');
$table->json('text');
$table->timestamps();
$table->softDeletes();
});
So in vendor/brackets/craftable-pro/src/Translations/Repositories/LanguageLineRepository.php
// because Laravel & MySQL are case-insensitive by default, let's double check we have the right $languageLine
if ($languageLine && $languageLine->key === $key) {
Now i go back to my project 😄
Issue
After a scan, listing show the same string multiple times :
Edit
By adding this log in vendor/brackets/craftable-pro/src/Translations/Repositories/LanguageLineRepository.php
Its a problem with case-insensitive query because it always return the first match: