Browse Source

BugFix [master] - Convert all menus to 2-2 format (#2627)

convert all app_menu.php files to have all placeholders and languages and use 2-2 format for languages
update app_defaults to convert any items found using legacy values in user_setings, domain_settings and default_settings
Mafoo 8 years ago
parent
commit
e764b10269
1 changed files with 26 additions and 18 deletions
  1. 26 18
      app_menu.php

+ 26 - 18
app_menu.php

@@ -1,22 +1,30 @@
 <?php
 
-$apps[$x]['menu'][0]['title']['en-us'] = "Contacts";
-$apps[$x]['menu'][0]['title']['pt-br'] = "Contatos";
-$apps[$x]['menu'][0]['title']['pl'] = "Kontakty";
-$apps[$x]['menu'][0]['title']['uk'] = "Контакти";
-$apps[$x]['menu'][0]['title']['sv-se'] = "Kontakter";
-$apps[$x]['menu'][0]['title']['es-cl'] = "Contactos";
-$apps[$x]['menu'][0]['title']['fr-fr'] = "Contacts";
-$apps[$x]['menu'][0]['title']['pt-pt'] = "Contactos";
-$apps[$x]['menu'][0]['title']['ru-ru'] = "Контакты";
-$apps[$x]['menu'][0]['title']['de-de'] = "Kontakte";
-$apps[$x]['menu'][0]['title']['de-at'] = "Kontakte";
-$apps[$x]['menu'][0]['title']['he'] = "אנשי קשר";
-$apps[$x]['menu'][0]['uuid'] = "f14e6ab6-6565-d4e6-cbad-a51d2e3e8ec6";
-$apps[$x]['menu'][0]['parent_uuid'] = "fd29e39c-c936-f5fc-8e2b-611681b266b5";
-$apps[$x]['menu'][0]['category'] = "internal";
-$apps[$x]['menu'][0]['path'] = "/app/contacts/contacts.php";
-$apps[$x]['menu'][0]['groups'][] = "admin";
-$apps[$x]['menu'][0]['groups'][] = "superadmin";
+	$y=0;
+	$apps[$x]['menu'][$y]['title']['en-us'] = "Contacts";
+	$apps[$x]['menu'][$y]['title']['ar-eg'] = "";
+	$apps[$x]['menu'][$y]['title']['de-at'] = "Kontakte";
+	$apps[$x]['menu'][$y]['title']['de-ch'] = "";
+	$apps[$x]['menu'][$y]['title']['de-de'] = "Kontakte";
+	$apps[$x]['menu'][$y]['title']['es-cl'] = "Contactos";
+	$apps[$x]['menu'][$y]['title']['es-mx'] = "";
+	$apps[$x]['menu'][$y]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][$y]['title']['fr-fr'] = "Contacts";
+	$apps[$x]['menu'][$y]['title']['he-il'] = "אנשי קשר";
+	$apps[$x]['menu'][$y]['title']['it-it'] = "";
+	$apps[$x]['menu'][$y]['title']['nl-nl'] = "";
+	$apps[$x]['menu'][$y]['title']['pl-pl'] = "Kontakty";
+	$apps[$x]['menu'][$y]['title']['pt-br'] = "Contatos";
+	$apps[$x]['menu'][$y]['title']['pt-pt'] = "Contactos";
+	$apps[$x]['menu'][$y]['title']['ro-ro'] = "";
+	$apps[$x]['menu'][$y]['title']['ru-ru'] = "Контакты";
+	$apps[$x]['menu'][$y]['title']['sv-se'] = "Kontakter";
+	$apps[$x]['menu'][$y]['title']['uk-ua'] = "Контакти";
+	$apps[$x]['menu'][$y]['uuid'] = "f14e6ab6-6565-d4e6-cbad-a51d2e3e8ec6";
+	$apps[$x]['menu'][$y]['parent_uuid'] = "fd29e39c-c936-f5fc-8e2b-611681b266b5";
+	$apps[$x]['menu'][$y]['category'] = "internal";
+	$apps[$x]['menu'][$y]['path'] = "/app/contacts/contacts.php";
+	$apps[$x]['menu'][$y]['groups'][] = "admin";
+	$apps[$x]['menu'][$y]['groups'][] = "superadmin";
 
 ?>