refactor: internationalise pagination and clean up related code

This commit is contained in:
frosty
2026-04-01 05:49:18 +03:00
parent c6bdeecb2a
commit 614bd26cb3
7 changed files with 191 additions and 158 deletions

View File

@@ -3,8 +3,18 @@
#include <beaker.h>
#define LINK_FIELD_COUNT 3
int hex_to_int(char c);
char *get_theme(const char *default_theme);
char *get_locale(const char *default_locale);
int add_link_to_collection(const char *href, const char *label,
const char *class_name, char ****collection,
int **inner_counts, int current_count);
int build_pagination(int page, const char *locale,
char *(*href_builder)(int page, void *data), void *data,
char ****out_matrix, int **out_inner_counts);
#endif