mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-16 11:08:49 +00:00
make settings translatable
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
const data = {
|
||||
"meta_direction": "ltr",
|
||||
|
||||
"go_to_profile": "MISSING STRING: go_to_profile",
|
||||
"go_to_post": "MISSING STRING: go_to_post",
|
||||
"go_username_or_url": "MISSING STRING: go_username_or_url",
|
||||
@@ -42,7 +41,45 @@ const data = {
|
||||
"no_posts_notice": "MISSING STRING: no_posts_notice",
|
||||
"no_more_posts_notice": "MISSING STRING: no_more_posts_notice",
|
||||
"fn_page_divider": () => "MISSING FUNCTION: fn_page_divider",
|
||||
"pug_post_timestamp": locals => "MISSING TEMPLATE: pug_post_timestamp"
|
||||
"pug_post_timestamp": locals => "MISSING TEMPLATE: pug_post_timestamp",
|
||||
"t_features": "MISSING STRING: t_features",
|
||||
"t_language": "MISSING STRING: t_language",
|
||||
"save_data": "MISSING STRING: save_data",
|
||||
"t_automatic": "MISSING STRING: t_automatic",
|
||||
"t_off": "MISSING STRING: t_off",
|
||||
"lazy_load": "MISSING STRING: lazy_load",
|
||||
"t_full": "MISSING STRING: t_full",
|
||||
"rewrite_youtube": "MISSING STRING: rewrite_youtube",
|
||||
"rewrite_twitter": "MISSING STRING: rewrite_twitter",
|
||||
"remove_trailing_hashtags": "MISSING STRING: remove_trailing_hashtags",
|
||||
"t_hide": "MISSING STRING: t_hide",
|
||||
"link_hashtags": "MISSING STRING: link_hashtags",
|
||||
"t_clickable": "MISSING STRING: t_clickable",
|
||||
"show_comments": "MISSING STRING: show_comments",
|
||||
"t_display": "MISSING STRING: t_display",
|
||||
"fast_navigation": "MISSING STRING: fast_navigation",
|
||||
"t_enabled": "MISSING STRING: t_enabled",
|
||||
"infinite_scroll": "MISSING STRING: infinite_scroll",
|
||||
"t_normal": "MISSING STRING: t_normal",
|
||||
"t_eager": "MISSING STRING: t_eager",
|
||||
"t_manual": "MISSING STRING: t_manual",
|
||||
"t_appearance": "MISSING STRING: t_appearance",
|
||||
"t_theme": "MISSING STRING: t_theme",
|
||||
"display_top_nav": "MISSING STRING: display_top_nav",
|
||||
"t_always": "MISSING STRING: t_always",
|
||||
"timeline_columns": "MISSING STRING: timeline_columns",
|
||||
"t_dynamic": "MISSING STRING: t_dynamic",
|
||||
"three_columns": "MISSING STRING: three_columns",
|
||||
"four_columns": "MISSING STRING: four_columns",
|
||||
"six_columns": "MISSING STRING: six_columns",
|
||||
"caption_side": "MISSING STRING: caption_side",
|
||||
"left_caption": "MISSING STRING: left_caption",
|
||||
"right_caption": "MISSING STRING: right_caption",
|
||||
"display_alt_text": "MISSING STRING: display_alt_text",
|
||||
"t_return": "MISSING STRING: t_return",
|
||||
"t_save": "MISSING STRING: t_save",
|
||||
"save_and_return": "MISSING STRING: save_and_return",
|
||||
"pug_restore_sync_settings": locals => "MISSING TEMPLATE: pug_restore_sync_settings"
|
||||
}
|
||||
|
||||
module.exports = data
|
||||
|
||||
@@ -57,6 +57,48 @@ const {pug} = require("./utils/functions")
|
||||
data.pug_post_timestamp = pug(`
|
||||
| Posted on #[time(datetime=post.date.toISOString() data-local-date)= post.getDisplayDate()].
|
||||
`)
|
||||
// settings
|
||||
data.t_features = "Features"
|
||||
data.t_language = "Language"
|
||||
data.save_data = "Save data"
|
||||
data.t_automatic = "Automatic"
|
||||
data.t_off = "Off"
|
||||
data.lazy_load = "Lazy load"
|
||||
data.t_full = "Full"
|
||||
data.rewrite_youtube = "Rewrite YouTube domain"
|
||||
data.rewrite_twitter = "Rewrite Twitter domain"
|
||||
data.remove_trailing_hashtags = "Hide trailing hashtags"
|
||||
data.t_hide = "Hide"
|
||||
data.link_hashtags = "Clickable hashtags"
|
||||
data.t_clickable = "Clickable"
|
||||
data.show_comments = "Display comments"
|
||||
data.t_display = "Display"
|
||||
data.fast_navigation = "Fast navigation"
|
||||
data.t_enabled = "Enabled"
|
||||
data.infinite_scroll = "Infinite scroll"
|
||||
data.t_normal = "Normal"
|
||||
data.t_eager = "Eager"
|
||||
data.t_manual = "Manual"
|
||||
data.t_appearance = "Appearance"
|
||||
data.t_theme = "Theme"
|
||||
data.display_top_nav = "Display top bar"
|
||||
data.t_always = "Always"
|
||||
data.timeline_columns = "Timeline columns"
|
||||
data.t_dynamic = "Dynamic"
|
||||
data.three_columns = "3 columns"
|
||||
data.four_columns = "4 columns"
|
||||
data.six_columns = "6 columns"
|
||||
data.caption_side = "Caption side"
|
||||
data.left_caption = "Left (Bibliogram)"
|
||||
data.right_caption = "Right (Instagram)"
|
||||
data.display_alt_text = "Display alt text inline"
|
||||
data.t_return = "Return"
|
||||
data.t_save = "Save"
|
||||
data.save_and_return = "Save & return"
|
||||
data.pug_restore_sync_settings = pug(`
|
||||
| You can restore and sync saved settings by #[a(href="/applysettings/"+token)#restore-link bookmarking this link.]
|
||||
`)
|
||||
|
||||
})()
|
||||
|
||||
module.exports = data
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// This file is a template.
|
||||
|
||||
const data = {
|
||||
"meta_direction": "ltr",
|
||||
// CONTENT
|
||||
}
|
||||
|
||||
|
||||
@@ -49,3 +49,43 @@ fn_page_divider
|
||||
# Post page
|
||||
|
||||
pug_post_timestamp
|
||||
|
||||
# settings
|
||||
t_features
|
||||
t_language
|
||||
save_data
|
||||
t_automatic
|
||||
t_off
|
||||
lazy_load
|
||||
t_full
|
||||
rewrite_youtube
|
||||
rewrite_twitter
|
||||
remove_trailing_hashtags
|
||||
t_hide
|
||||
link_hashtags
|
||||
t_clickable
|
||||
show_comments
|
||||
t_display
|
||||
fast_navigation
|
||||
t_enabled
|
||||
infinite_scroll
|
||||
t_normal
|
||||
t_eager
|
||||
t_manual
|
||||
t_appearance
|
||||
t_theme
|
||||
display_top_nav
|
||||
t_always
|
||||
timeline_columns
|
||||
t_dynamic
|
||||
three_columns
|
||||
four_columns
|
||||
six_columns
|
||||
caption_side
|
||||
left_caption
|
||||
right_caption
|
||||
display_alt_text
|
||||
t_return
|
||||
t_save
|
||||
save_and_return
|
||||
pug_restore_sync_settings
|
||||
Reference in New Issue
Block a user