add translation, fixed little bug

This commit is contained in:
2022-04-19 15:02:40 +03:00
parent 684a0616a4
commit 3cd588d112
9 changed files with 345 additions and 312 deletions

7
main.c
View File

@@ -16,6 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libintl.h>
#include <omp.h>
#include <signal.h>
#include <stdio.h>
@@ -72,6 +73,12 @@ void signals(int signo){
int main(int argc, char **argv){
char *self = strdup(argv[0]);
initial_setup();
#if defined GETTEXT_PACKAGE && defined LOCALEDIR
printf("GETTEXT_PACKAGE=" GETTEXT_PACKAGE ", LOCALEDIR=" LOCALEDIR "\n");
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
textdomain(GETTEXT_PACKAGE);
#endif
/*
int cpunumber = sysconf(_SC_NPROCESSORS_ONLN);
if(omp_get_max_threads() != cpunumber)