Skip to content

Commit

Permalink
Merge pull request #19830 from abpframework/MyProjectNameBrandingProv…
Browse files Browse the repository at this point in the history
…ider

Get `MyProjectName` from localized text.
  • Loading branch information
enisn authored May 15, 2024
2 parents bdcf815 + 3a4aeba commit 84396c2
Show file tree
Hide file tree
Showing 210 changed files with 452 additions and 79 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "ar",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "مرحبا",
"Welcome_Text": "هذا هو قالب بدء تشغيل تطبيق ذو طبقة واحدة مبسط لإطار عمل ABP.",
"Menu:Home": "الصفحة الرئيسية"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "cs",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Vítejte",
"Welcome_Text": "Toto je minimalistická šablona pro spuštění aplikace s jednou vrstvou pro ABP Framework.",
"Menu:Home": "Úvod"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "de",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Willkommen",
"Welcome_Text": "Dies ist eine minimalistische, einschichtige Anwendungsstartvorlage für das ABP-Framework.",
"Menu:Home": "Home"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "en-GB",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Welcome_Title",
"Welcome_Text": "This is a minimalist, single layer application startup template for the ABP Framework.",
"Menu:Home": "Home"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "en",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Welcome",
"Welcome_Text": "This is a minimalist, single layer application startup template for the ABP Framework.",
"Menu:Home": "Home"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "es",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Bienvenido",
"Welcome_Text": "Esta es una plantilla de inicio de aplicación minimalista de una sola capa para ABP Framework.",
"Menu:Home": "Inicio"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "fi",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Tervetuloa",
"Welcome_Text": "Tämä on minimalistinen yksikerroksinen sovelluksen käynnistysmalli ABP Frameworkille.",
"Menu:Home": "Koti"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"culture": "fr",
"texts": {
"Welcome_Title": "Bienvenue",
"AppName": "MyProjectName",
"Welcome_Title": "Bienvenue",
"Welcome_Text": "Il s'agit d'un modèle de démarrage d'application minimaliste à une seule couche pour le cadre ABP.",
"Menu:Home": "Accueil"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "hi",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "स्वागत हे",
"Welcome_Text": "यह एबीपी फ्रेमवर्क के लिए एक न्यूनतम, सिंगल लेयर एप्लिकेशन स्टार्टअप टेम्प्लेट है।",
"Menu:Home": "घर"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"culture": "hr",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Dobrodošli",
"Welcome_Text": "Ovo je minimalistički jednoslojni predložak za pokretanje aplikacije za ABP Framework.",
"Menu:Home": "Dom"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"culture": "hu",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Üdvözlöm",
"Welcome_Text": "Ez egy minimalista, egyrétegű alkalmazásindítási sablon az ABP-keretrendszerhez.",
"Menu:Home": "Kezdőlap"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "is",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Velkomin",
"Welcome_Text": "Þetta er lægstur, eins lags ræsingarsniðmát fyrir ABP Framework.",
"Menu:Home": "Heim"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "it",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Benvenuto",
"Welcome_Text": "Questo è un modello di avvio dell'applicazione minimalista a livello singolo per ABP Framework.",
"Menu:Home": "Home"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "nl",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Welkom",
"Welcome_Text": "Dit is een minimalistische, enkellaagse applicatie-opstartsjabloon voor het ABP Framework.",
"Menu:Home": "Home"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "pl-PL",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Witaj",
"Welcome_Text": "Jest to minimalistyczny, jednowarstwowy szablon uruchamiania aplikacji dla ABP Framework.",
"Menu:Home": "Home"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "pt-BR",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Seja bem-vindo!",
"Welcome_Text": "Este é um modelo de inicialização de aplicativo de camada única minimalista para o ABP Framework.",
"Menu:Home": "Principal"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "ro-RO",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Bun venit",
"Welcome_Text": "Acesta este un șablon de pornire a aplicației minimaliste, cu un singur strat, pentru Cadrul ABP.",
"Menu:Home": "Acasă"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "ru",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Bine ati venit",
"Welcome_Text": "Acesta este un șablon de pornire a aplicației minimaliste, cu un singur strat, pentru Cadrul ABP.",
"Menu:Home": "Главная"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "sk",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Vitajte",
"Welcome_Text": "Toto je minimalistická šablóna na spustenie aplikácie s jednou vrstvou pre rámec ABP.",
"Menu:Home": "Domov"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "sl",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Dobrodošli",
"Welcome_Text": "To je minimalistična enoslojna predloga za zagon aplikacije za ABP Framework.",
"Menu:Home": "Domov"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "tr",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Hoşgeldiniz",
"Welcome_Text": "Bu proje tek katmanlı ABP uygulamaları yapmak için bir başlangıç şablonudur.",
"Menu:Home": "Ana sayfa"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "vi",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Chào mừng bạn",
"Welcome_Text": "Đây là một mẫu khởi động ứng dụng lớp đơn, tối giản cho ABP Framework.",
"Menu:Home": "Trang chủ"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"culture": "zh-Hans",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "欢迎",
"Welcome_Text": "这是 ABP 框架的极简单层应用程序启动模板。",
"Menu:Home": "首页"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "zh-Hant",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "歡迎",
"Welcome_Text": "這是 ABP 框架的極簡單層應用程序啟動模板.",
"Menu:Home": "首頁"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
using Volo.Abp.DependencyInjection;
using Microsoft.Extensions.Localization;
using MyCompanyName.MyProjectName.Localization;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Ui.Branding;

namespace MyCompanyName.MyProjectName;

[Dependency(ReplaceServices = true)]
public class MyProjectNameBrandingProvider : DefaultBrandingProvider
{
public override string AppName => "MyProjectName";
private IStringLocalizer<MyProjectNameResource> _localizer;

public MyProjectNameBrandingProvider(IStringLocalizer<MyProjectNameResource> localizer)
{
_localizer = localizer;
}

public override string AppName => _localizer["AppName"];
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "ar",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "مرحبا",
"Welcome_Text": "هذا هو قالب بدء تشغيل تطبيق ذو طبقة واحدة مبسط لإطار عمل ABP.",
"Menu:Home": "الصفحة الرئيسية"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "cs",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Vítejte",
"Welcome_Text": "Toto je minimalistická šablona pro spuštění aplikace s jednou vrstvou pro ABP Framework.",
"Menu:Home": "Úvod"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "de",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Willkommen",
"Welcome_Text": "Dies ist eine minimalistische, einschichtige Anwendungsstartvorlage für das ABP-Framework.",
"Menu:Home": "Home"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "en-GB",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Welcome_Title",
"Welcome_Text": "This is a minimalist, single layer application startup template for the ABP Framework.",
"Menu:Home": "Home"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "en",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Welcome",
"Welcome_Text": "This is a minimalist, single layer application startup template for the ABP Framework.",
"Menu:Home": "Home"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "es",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Bienvenido",
"Welcome_Text": "Esta es una plantilla de inicio de aplicación minimalista de una sola capa para ABP Framework.",
"Menu:Home": "Inicio"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "fi",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Tervetuloa",
"Welcome_Text": "Tämä on minimalistinen yksikerroksinen sovelluksen käynnistysmalli ABP Frameworkille.",
"Menu:Home": "Koti"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"culture": "fr",
"texts": {
"Welcome_Title": "Bienvenue",
"AppName": "MyProjectName",
"Welcome_Title": "Bienvenue",
"Welcome_Text": "Il s'agit d'un modèle de démarrage d'application minimaliste à une seule couche pour le cadre ABP.",
"Menu:Home": "Accueil"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "hi",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "स्वागत हे",
"Welcome_Text": "यह एबीपी फ्रेमवर्क के लिए एक न्यूनतम, सिंगल लेयर एप्लिकेशन स्टार्टअप टेम्प्लेट है।",
"Menu:Home": "घर"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"culture": "hr",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Dobrodošli",
"Welcome_Text": "Ovo je minimalistički jednoslojni predložak za pokretanje aplikacije za ABP Framework.",
"Menu:Home": "Dom"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"culture": "hu",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Üdvözlöm",
"Welcome_Text": "Ez egy minimalista, egyrétegű alkalmazásindítási sablon az ABP-keretrendszerhez.",
"Menu:Home": "Kezdőlap"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "is",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Velkomin",
"Welcome_Text": "Þetta er lægstur, eins lags ræsingarsniðmát fyrir ABP Framework.",
"Menu:Home": "Heim"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "it",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Benvenuto",
"Welcome_Text": "Questo è un modello di avvio dell'applicazione minimalista a livello singolo per ABP Framework.",
"Menu:Home": "Home"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "nl",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Welkom",
"Welcome_Text": "Dit is een minimalistische, enkellaagse applicatie-opstartsjabloon voor het ABP Framework.",
"Menu:Home": "Home"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "pl-PL",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Witaj",
"Welcome_Text": "Jest to minimalistyczny, jednowarstwowy szablon uruchamiania aplikacji dla ABP Framework.",
"Menu:Home": "Home"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "pt-BR",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Seja bem-vindo!",
"Welcome_Text": "Este é um modelo de inicialização de aplicativo de camada única minimalista para o ABP Framework.",
"Menu:Home": "Principal"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "ro-RO",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Bun venit",
"Welcome_Text": "Acesta este un șablon de pornire a aplicației minimaliste, cu un singur strat, pentru Cadrul ABP.",
"Menu:Home": "Acasă"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "ru",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Bine ati venit",
"Welcome_Text": "Acesta este un șablon de pornire a aplicației minimaliste, cu un singur strat, pentru Cadrul ABP.",
"Menu:Home": "Главная"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "sk",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Vitajte",
"Welcome_Text": "Toto je minimalistická šablóna na spustenie aplikácie s jednou vrstvou pre rámec ABP.",
"Menu:Home": "Domov"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"culture": "sl",
"texts": {
"AppName": "MyProjectName",
"Welcome_Title": "Dobrodošli",
"Welcome_Text": "To je minimalistična enoslojna predloga za zagon aplikacije za ABP Framework.",
"Menu:Home": "Domov"
Expand Down
Loading

0 comments on commit 84396c2

Please sign in to comment.