Skip to content

A free open source IT asset/license management system

Migration

snipefecd877e8b54
diff --git a/database/migrations/2024_07_23_172032_change_no__n_o_to_nb__n_o.php b/database/migrations/2024_07_23_172032_change_no__n_o_to_nb__n_o.php
new file mode 100644
index 0000000000..6ed7e2b3a1
--- /dev/null
+++ b/database/migrations/2024_07_23_172032_change_no__n_o_to_nb__n_o.php
@@ -0,0 +1,28 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+use App\Models\Setting;
+use App\Models\User;
+
+return new class extends Migration
+{
+ /**
+ * Run the migrations.
+ */
+ public function up(): void
+ {
+ Setting::where('locale', 'no-NO')->update(['locale' => 'nb-NO']);
+ User::where('locale', 'no-NO')->update(['locale' => 'nb-NO']);
+
+ }
+
+ /**
+ * Reverse the migrations.
+ */
+ public function down(): void
+ {
+
+ }
+};
diff --git a/resources/lang/en-US/localizations.php b/resources/lang/en-US/localizations.php
index 59f3dc1acb..f335ddc1b3 100644
--- a/resources/lang/en-US/localizations.php
+++ b/resources/lang/en-US/localizations.php
@@ -40,9 +40,9 @@ return [
'ms-MY'=> 'Malay',
'mi-NZ'=> 'Maori',
'mn-MN'=> 'Mongolian',
- 'no-NO'=> 'Norwegian',
+ //'no-NO'=> 'Norwegian',
'nb-NO'=> 'Norwegian Bokmål',
- 'nn-NO'=> 'Norwegian Nynorsk',
+ //'nn-NO'=> 'Norwegian Nynorsk',
'fa-IR'=> 'Persian',
'pl-PL'=> 'Polish',
'pt-PT'=> 'Portuguese',