mirror of https://codeberg.org/topola/topola.git
translation: upload placeholder Fluent files to test Weblate
This commit is contained in:
parent
deb2fffbf1
commit
a04caeae9c
|
|
@ -35,6 +35,7 @@ contracts = "0.6.3"
|
||||||
bimap = "0.6.3"
|
bimap = "0.6.3"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
utf8-chars = "3.0.2"
|
utf8-chars = "3.0.2"
|
||||||
|
fluent-templates = "0.9.4"
|
||||||
|
|
||||||
[dependencies.specctra_derive]
|
[dependencies.specctra_derive]
|
||||||
path = "macro/specctra_derive"
|
path = "macro/specctra_derive"
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
-something = foo
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
reference = simple text with a reference: { -something }
|
||||||
|
|
@ -11,6 +11,15 @@ mod painter;
|
||||||
mod top;
|
mod top;
|
||||||
mod viewport;
|
mod viewport;
|
||||||
use app::App;
|
use app::App;
|
||||||
|
use fluent_templates::static_loader;
|
||||||
|
|
||||||
|
static_loader! {
|
||||||
|
static LOCALES = {
|
||||||
|
locales: "./locales",
|
||||||
|
fallback_language: "en-US",
|
||||||
|
core_locales: "./locales/core.ftl",
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
// Build to native.
|
// Build to native.
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
use clap::{Error, Parser};
|
use clap::{Error, Parser};
|
||||||
|
use fluent_templates::static_loader;
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::io::prelude::*;
|
use std::io::prelude::*;
|
||||||
use std::io::BufReader;
|
use std::io::BufReader;
|
||||||
|
|
@ -10,6 +11,14 @@ use topola::autorouter::selection::Selection;
|
||||||
use topola::autorouter::Autorouter;
|
use topola::autorouter::Autorouter;
|
||||||
use topola::specctra::design::SpecctraDesign;
|
use topola::specctra::design::SpecctraDesign;
|
||||||
|
|
||||||
|
static_loader! {
|
||||||
|
static LOCALES = {
|
||||||
|
locales: "./locales",
|
||||||
|
fallback_language: "en-US",
|
||||||
|
core_locales: "./locales/core.ftl",
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Parser, Debug, Default)]
|
#[derive(Parser, Debug, Default)]
|
||||||
#[command(about, version)]
|
#[command(about, version)]
|
||||||
struct Cli {
|
struct Cli {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue