aboutsummaryrefslogtreecommitdiff
path: root/src/preferences
diff options
context:
space:
mode:
authorRubén Beltrán del Río <jj@r.bdr.sh>2026-01-18 22:19:22 +0100
committerRubén Beltrán del Río <jj@r.bdr.sh>2026-01-18 23:15:46 +0100
commit988e2ef1e8a7075a07a50d64f1e8439ebf8df098 (patch)
tree9ba997e35bd20e9fc1ac365cb56447d9acb5abe4 /src/preferences
parentb34a7f1b7791f1b017683579f2091a6ffa152c1a (diff)
Update metainfo according to recommendations
Diffstat (limited to 'src/preferences')
-rw-r--r--src/preferences/models.rs27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/preferences/models.rs b/src/preferences/models.rs
index 81fa4d1..a595fc2 100644
--- a/src/preferences/models.rs
+++ b/src/preferences/models.rs
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
+use crate::tr;
use serde::{Deserialize, Serialize};
use uuid::Uuid;
@@ -49,12 +50,12 @@ impl CustomStage {
pub fn cynefin_default() -> Self {
Self {
id: Uuid::new_v4(),
- name: "Cynefin".to_string(),
+ name: tr!("stages.cynefin.name"),
stage: Stage {
- i: "Chaotic".to_string(),
- ii: "Complex".to_string(),
- iii: "Complicated".to_string(),
- iv: "Clear".to_string(),
+ i: tr!("stages.cynefin.i"),
+ ii: tr!("stages.cynefin.ii"),
+ iii: tr!("stages.cynefin.iii"),
+ iv: tr!("stages.cynefin.iv"),
},
}
}
@@ -62,12 +63,12 @@ impl CustomStage {
pub fn placeholder_default() -> Self {
Self {
id: Uuid::new_v4(),
- name: "New Stage".to_string(),
+ name: tr!("stages.new.name"),
stage: Stage {
- i: "Stage I".to_string(),
- ii: "Stage II".to_string(),
- iii: "Stage III".to_string(),
- iv: "Stage IV".to_string(),
+ i: tr!("stages.evolution_stage.i"),
+ ii: tr!("stages.evolution_stage.ii"),
+ iii: tr!("stages.evolution_stage.iii"),
+ iv: tr!("stages.evolution_stage.iv"),
},
}
}
@@ -176,11 +177,11 @@ impl Default for UserPreferences {
map_templates: vec![
Template::new(
- "Basic Map".to_string(),
- "Anchor (95, 80)\nUsers (90, 20)\nWalking App (70, 20)\nWalking App Database (50, 60)\nUser Interface (80, 50)\nWeb Server (60, 30)\nCRM (30, 70)\n\nUsers -- Walking App\nUsers -- User Interface\nWalking App -- Walking App Database\nWalking App -- Web Server\nUser Interface -- Web Server\nWeb Server -- CRM\n\n[Note] (80, 5) Social walking app for everyone\n\n[Group] Client Side, Walking App, User Interface\n\n[Evolution] Walking App +5\n\n[Inertia] CRM\n".to_string(),
+ tr!("templates.defaults.example.title"),
+ tr!("templates.defaults.example.source"),
true,
),
- Template::new("Empty".to_string(), String::new(), false),
+ Template::new(tr!("templates.defaults.empty.title"), String::new(), false),
],
custom_stages: vec![CustomStage::cynefin_default()],