forked from mirrors/treebird
L10N values
FossilOrigin-Name: db91056837ac3f03ee069bfe93624156ac38b027170fa575393588728bdddf08
This commit is contained in:
parent
31efb281a4
commit
086232d5e5
3 changed files with 91 additions and 2 deletions
2
config.h
2
config.h
|
@ -31,6 +31,6 @@ static const char* config_canonical_name = "RatFE";
|
|||
*
|
||||
* Example: https://cum.desupost.soy/
|
||||
*/
|
||||
static char* config_instance_url = "https://cum.desupost.soy/";
|
||||
static char* config_instance_url = "https://desuposter.club/";
|
||||
|
||||
#endif // CONFIG_H
|
||||
|
|
|
@ -32,7 +32,7 @@ void content_index(mastodont_t* api)
|
|||
struct mstdnt_status* statuses;
|
||||
struct mstdnt_storage storage;
|
||||
char* status_format;
|
||||
mastodont_timeline_public(api, NULL, &storage, &statuses, &status_count);
|
||||
int res = mastodont_timeline_public(api, NULL, &storage, &statuses, &status_count);
|
||||
|
||||
/* Construct statuses into HTML */
|
||||
status_format = construct_statuses(statuses, status_count, &statuses_html_count);
|
||||
|
|
89
src/l10n.h
Normal file
89
src/l10n.h
Normal file
|
@ -0,0 +1,89 @@
|
|||
/*
|
||||
* RatFE - Lightweight frontend for Pleroma
|
||||
* Copyright (C) 2022 Nekobit
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef RATFE_L10N_H
|
||||
#define RATFE_L10N_H
|
||||
|
||||
enum l10n_locale
|
||||
{
|
||||
L10N_EN_US = 0,
|
||||
};
|
||||
|
||||
enum l10n_string
|
||||
{
|
||||
/* GENERAL */
|
||||
L10N_APP_NAME = 0,
|
||||
L10N_HOME,
|
||||
L10N_LOCAL,
|
||||
L10N_FEDERATED,
|
||||
L10N_NOTIFICATIONS,
|
||||
L10N_LISTS,
|
||||
L10N_DIRECT,
|
||||
L10N_CONFIG,
|
||||
L10N_SEARCH_PLACEHOLDER,
|
||||
L10N_SEARCH_BUTTON,
|
||||
|
||||
/* CONFIG */
|
||||
L10N_GENERAL,
|
||||
L10N_JAVASCRIPT,
|
||||
L10N_CFG_QUICK_ACTIONS,
|
||||
L10N_CFG_QUICK_REPLY,
|
||||
L10N_CFG_LIVE_STATUSES,
|
||||
L10N_APPEARANCE,
|
||||
L10N_THEME_VARIANT,
|
||||
L10N_THEME_RATFE20,
|
||||
L10N_THEME_RATFE30,
|
||||
L10N_COLOR_SCHEME,
|
||||
L10N_LIGHT,
|
||||
L10N_DARK,
|
||||
L10N_SAVE,
|
||||
};
|
||||
|
||||
static const char* L10N[][] = {
|
||||
// EN_US
|
||||
{
|
||||
/* GENERAL */
|
||||
"RatFE", // L10N_APP_NAME
|
||||
"Home",
|
||||
"Local",
|
||||
"Federated",
|
||||
"Notifications",
|
||||
"Lists",
|
||||
"Direct",
|
||||
"Config",
|
||||
"Search",
|
||||
"Search",
|
||||
|
||||
/* CONFIG */
|
||||
"General",
|
||||
"JavaScript",
|
||||
"Quick actions - Likes, Boosts, etc done in background",
|
||||
"Quick reply - Replies don't require redirects",
|
||||
"Live statuses - Statuses fetch on the fly",
|
||||
"Appearance",
|
||||
"Theme variant",
|
||||
"RatFE 2.0 - Default, simple theme",
|
||||
"RatFE 3.0 - Flat, modern theme",
|
||||
"Color Scheme",
|
||||
"Light",
|
||||
"Dark",
|
||||
"Save",
|
||||
},
|
||||
};
|
||||
|
||||
#endif // RATFE_L10N_H
|
Loading…
Reference in a new issue