mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-06-02 08:49:50 +00:00
add lemmy-translations submodule
This commit is contained in:
parent
3723428c69
commit
46901fde59
|
@ -14,6 +14,8 @@ steps:
|
|||
commands:
|
||||
- chown 1000:1000 . -R
|
||||
- git fetch --tags
|
||||
- git submodule init
|
||||
- git submodule update --recursive --remote
|
||||
|
||||
- name: check formatting
|
||||
image: rustdocker/rust:nightly
|
||||
|
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "crates/utils/translations"]
|
||||
path = crates/utils/translations
|
||||
url = https://github.com/LemmyNet/lemmy-translations.git
|
|
@ -3,7 +3,7 @@ use diesel::{result::Error, *};
|
|||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(
|
||||
Queryable, Associations, Identifiable, PartialEq, Debug, Serialize, Deserialize, Clone,
|
||||
Queryable, Associations, Identifiable, PartialEq, Debug, Serialize, Deserialize, Clone, Default,
|
||||
)]
|
||||
#[table_name = "person_aggregates"]
|
||||
pub struct PersonAggregates {
|
||||
|
@ -23,19 +23,6 @@ impl PersonAggregates {
|
|||
}
|
||||
}
|
||||
|
||||
impl Default for PersonAggregates {
|
||||
fn default() -> Self {
|
||||
PersonAggregates {
|
||||
id: 0,
|
||||
person_id: Default::default(),
|
||||
post_count: 0,
|
||||
post_score: 0,
|
||||
comment_count: 0,
|
||||
comment_score: 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
rosetta_build::config()
|
||||
.source("en", "translations/en.json")
|
||||
.source("en", "translations/email/en.json")
|
||||
.fallback("en")
|
||||
.generate()?;
|
||||
|
||||
|
|
1
crates/utils/translations
Submodule
1
crates/utils/translations
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 1314f10fbc0db9c16ff4209a2885431024a14ed8
|
|
@ -1,18 +0,0 @@
|
|||
{
|
||||
"registration_approved_subject": "Registration approved for {username}",
|
||||
"registration_approved_body": "Your registration application has been approved. Welcome to {hostname}!",
|
||||
"password_reset_subject": "Password reset for {username}",
|
||||
"password_reset_body": "<h1>Password Reset Request for {username}</h1><br><a href={reset_link}>Click here to reset your password</a>",
|
||||
"verify_email_subject": "Verify your email address for {hostname}",
|
||||
"verify_email_body": "Please click the link below to verify your email address for the account @{username}@{hostname}. Ignore this email if the account isn't yours.<br><br>, <a href=\"{verify_link}\">Verify your email</a>",
|
||||
"email_verified_subject": "Email verified for {username}",
|
||||
"email_verified_body": "Your email has been verified.",
|
||||
"notification_post_reply_subject": "Reply from {username}",
|
||||
"notification_post_reply_body": "<h1>Post reply</h1><br><div>{username} - {comment_text}</div><br><a href={inbox_link}>inbox</a>",
|
||||
"notification_comment_reply_subject": "Reply from {username}",
|
||||
"notification_comment_reply_body": "<h1>Comment reply</h1><br><div>{username} - {comment_text}</div><br><a href={inbox_link}>inbox</a>",
|
||||
"notification_mentioned_by_subject": "Mentioned by {username}",
|
||||
"notification_mentioned_by_body": "<h1>Person Mention</h1><br><div>{username} - {comment_text}</div><br><a href={inbox_link}>inbox</a>",
|
||||
"notification_private_message_subject": "Private message from {username}",
|
||||
"notification_private_message_body": "<h1>Private message</h1><br><div>{username} - {message_text}</div><br><a href={inbox_link}>inbox</a>"
|
||||
}
|
Loading…
Reference in a new issue