Skip to content

Commit e595f0b

Browse files
Merge pull request #6773 from christianbeeznest/GH-6759
Internal: Add Burmese language to languages list - refs #6759
2 parents 3542886 + bda585a commit e595f0b

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

src/CoreBundle/DataFixtures/LanguageFixtures.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,14 @@ public static function getLanguages(): array
544544
'format' => 'title first_name last_name',
545545
'sort_by' => 'first_name',
546546
],
547+
[
548+
'original_name' => 'မြန်မာဘာသာ',
549+
'english_name' => 'burmese',
550+
'isocode' => 'my_MM',
551+
'available' => 0,
552+
'format' => 'title first_name last_name',
553+
'sort_by' => 'first_name',
554+
],
547555
];
548556
}
549557
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/* For licensing terms, see /license.txt */
6+
7+
namespace Chamilo\CoreBundle\Migrations\Schema\V200;
8+
9+
use Chamilo\CoreBundle\Migrations\AbstractMigrationChamilo;
10+
use Doctrine\DBAL\Schema\Schema;
11+
12+
final class Version20250918152900 extends AbstractMigrationChamilo
13+
{
14+
public function getDescription(): string
15+
{
16+
return "Languages: insert Burmese (my_MM) if missing.";
17+
}
18+
19+
public function up(Schema $schema): void
20+
{
21+
$this->addSql("
22+
INSERT INTO language (original_name, english_name, isocode, available)
23+
SELECT 'မြန်မာဘာသာ', 'burmese', 'my_MM', 0
24+
WHERE NOT EXISTS (SELECT 1 FROM language WHERE isocode = 'my_MM')
25+
");
26+
}
27+
28+
public function down(Schema $schema): void
29+
{
30+
$this->addSql("DELETE FROM language WHERE isocode = 'my_MM'");
31+
}
32+
}

0 commit comments

Comments
 (0)