Skip to content

Commit

Permalink
Remove old translation system and add nb and es
Browse files Browse the repository at this point in the history
Add translatable string for location of help files.
Currently available in English, Spanish and Norwegian.
Catkeys included in English, Spanish and Norwegian
  • Loading branch information
dospuntos authored and korli committed Apr 10, 2024
1 parent 2651d37 commit 180dd37
Show file tree
Hide file tree
Showing 26 changed files with 668 additions and 917 deletions.
34 changes: 16 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Haiku Generic Makefile v2.6 ##
## Haiku Generic Makefile v2.6 ##

## Fill in this file to specify the project being created, and the referenced
## Makefile-Engine will do all of the hard work for you. This handles any
Expand All @@ -20,9 +20,9 @@ APP_MIME_SIG = application/x-vnd.wgp-CapitalBe
# The following lines tell Pe and Eddie where the SRCS, RDEFS, and RSRCS are
# so that Pe and Eddie can fill them in for you.
#%{
# @src->@
# @src->@

# Specify the source files to use. Full paths or paths relative to the
# Specify the source files to use. Full paths or paths relative to the
# Makefile can be included. All files, regardless of directory, will have
# their object files created in the common object directory. Note that this
# means this Makefile will not work correctly if two source files with the
Expand Down Expand Up @@ -52,8 +52,6 @@ SRCS = \
src/Fixed.cpp \
src/HelpButton.cpp \
src/Import.cpp \
src/Language.cpp \
src/LanguageRoster.cpp \
src/Locale.cpp \
src/MainWindow.cpp \
src/NavTextBox.cpp \
Expand Down Expand Up @@ -102,7 +100,7 @@ RSRCS = \


# End Pe/Eddie support.
# @<-src@
# @<-src@
#%}

#%}
Expand All @@ -126,7 +124,7 @@ LIBS = be tracker localestub translation sqlite3 columnlistview $(STDCPPLIBS)
# to the Makefile. The paths included are not parsed recursively, so
# include all of the paths where libraries must be found. Directories where
# source files were specified are automatically included.
LIBPATHS =
LIBPATHS =

# Additional paths to look for system headers. These use the form
# "#include <header>". Directories that contain the files in SRCS are
Expand All @@ -136,56 +134,56 @@ SYSTEM_INCLUDE_PATHS = $(shell findpaths -e B_FIND_PATH_HEADERS_DIRECTORY privat
# Additional paths paths to look for local headers. These use the form
# #include "header". Directories that contain the files in SRCS are
# automatically included.
LOCAL_INCLUDE_PATHS =
LOCAL_INCLUDE_PATHS =

# Specify the level of optimization that you want. Specify either NONE (O0),
# SOME (O1), FULL (O2), or leave blank (for the default optimization level).
OPTIMIZE :=
OPTIMIZE :=

# Specify the codes for languages you are going to support in this
# application. The default "en" one must be provided too. "make catkeys"
# will recreate only the "locales/en.catkeys" file. Use it as a template
# for creating catkeys for other languages. All localization files must be
# placed in the "locales" subdirectory.
LOCALES = en
LOCALES = en es nb

# Specify all the preprocessor symbols to be defined. The symbols will not
# have their values set automatically; you must supply the value (if any) to
# use. For example, setting DEFINES to "DEBUG=1" will cause the compiler
# option "-DDEBUG=1" to be used. Setting DEFINES to "DEBUG" would pass
# "-DDEBUG" on the compiler's command line.
DEFINES =
DEFINES =

# Specify the warning level. Either NONE (suppress all warnings),
# ALL (enable all warnings), or leave blank (enable default warnings).
WARNINGS =
WARNINGS =

# With image symbols, stack crawls in the debugger are meaningful.
# If set to "TRUE", symbols will be created.
SYMBOLS :=
SYMBOLS :=

# Includes debug information, which allows the binary to be debugged easily.
# If set to "TRUE", debug info will be created.
DEBUGGER :=
DEBUGGER :=

# Specify any additional compiler flags to be used.
COMPILER_FLAGS =
COMPILER_FLAGS =

# Specify any additional linker flags to be used.
LINKER_FLAGS =
LINKER_FLAGS =

# Specify the version of this binary. Example:
# -app 3 4 0 d 0 -short 340 -long "340 "`echo -n -e '\302\251'`"1999 GNU GPL"
# This may also be specified in a resource.
APP_VERSION :=
APP_VERSION :=

# (Only used when "TYPE" is "DRIVER"). Specify the desired driver install
# location in the /dev hierarchy. Example:
# DRIVER_PATH = video/usb
# will instruct the "driverinstall" rule to place a symlink to your driver's
# binary in ~/add-ons/kernel/drivers/dev/video/usb, so that your driver will
# appear at /dev/video/usb when loaded. The default is "misc".
DRIVER_PATH =
DRIVER_PATH =

## Include the Makefile-Engine
DEVEL_DIRECTORY := $(shell findpaths -r "makefile_engine" B_FIND_PATH_DEVELOP_DIRECTORY)
Expand Down
10 changes: 6 additions & 4 deletions locales/en.catkeys
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
1 English application/x-vnd.wgp-CapitalBe 548178424
1 English application/x-vnd.wgp-CapitalBe 2175615134
Year ReportWindow Year
Edit transaction TransactionEditWindow Edit transaction
None ReportWindow None
Expand All @@ -9,7 +9,6 @@ Monthly ScheduleAddWindow Monthly
Annually BudgetWindow Annually
Report a bug… MainWindow Report a bug…
OK PrefWindow OK
Changes will take effect on restart MainWindow Changes will take effect on restart
CapitalBe didn't understand the date you entered. DateBox CapitalBe didn't understand the date you entered.
To account TransferWindow To account
Category CheckView Category
Expand Down Expand Up @@ -77,6 +76,7 @@ Reopen MainWindow Reopen
Edit… CategoryWindow Edit…
Annually ScheduleAddWindow Annually
Close MainWindow Close
English CheckView Path to localized helpfiles. Only translate if available in your language. English
Closed AccountListItem Closed
CapitalBe didn't understand the amount for Bank Charges. ReconcileWindow CapitalBe didn't understand the amount for Bank Charges.
Import MainWindow Import
Expand Down Expand Up @@ -113,6 +113,7 @@ Schedule this transaction… MainWindow Schedule this transaction…
Payee ScheduleListWindow Payee
Symbol: PrefWindow Symbol:
Transactions TransactionReport Transactions
English ScheduleListWindow Path to localized helpfiles. Only translate if available in your language. English
Split Transaction SplitView Split Transaction
Average BudgetWindow Average
Quarterly Budget Quarterly
Expand All @@ -122,6 +123,7 @@ Frequency ScheduleAddWindow Frequency
Category BudgetReport Category
Accounts: ReportWindow Accounts:
Options PrefWindow Options
English SplitView Path to localized helpfiles. Only translate if available in your language. English
Edit category BudgetWindow Edit category
Reconcile ReconcileWindow Reconcile
Weekly ScheduleListWindow Weekly
Expand Down Expand Up @@ -157,6 +159,7 @@ Date is missing. ReconcileWindow Date is missing.
Date: ReconcileWindow Date:
Numbered transactions cannot be scheduled. MainWindow Numbered transactions cannot be scheduled.
New… MainWindow New…
English ReconcileWindow Path to localized helpfiles. Only translate if available in your language. English
Quick Balance failed. This doesn't mean that you did something wrong - it's just that Quick Balance works on simpler cases in balancing an account than this one. Sorry. ReconcileWindow Quick Balance failed. This doesn't mean that you did something wrong - it's just that Quick Balance works on simpler cases in balancing an account than this one. Sorry.
Transfer BudgetWindow Transfer
Amount: %s ScheduleAddWindow Amount: %s
Expand All @@ -177,9 +180,7 @@ Amount TransactionReport Amount
Transaction MainWindow Transaction
Edit transfer TransferWindow Edit transfer
Amount TransferWindow Amount
CapitalBe will be use your language choice the next time it is started. MainWindow CapitalBe will be use your language choice the next time it is started.
Categories CategoryWindow Categories
Language MainWindow Language
Date CheckView Date
Account MainWindow Account
Currency format: %s PrefWindow Currency format: %s
Expand Down Expand Up @@ -254,6 +255,7 @@ CapitalBe didn't understand the date you entered. ScheduleAddWindow CapitalBe d
Income CashFlowReport Income
Memo TransferWindow Memo
Total checks: %s ReconcileWindow Total checks: %s
English ReportWindow Path to localized helpfiles. Only translate if available in your language. English
Quarterly BudgetWindow Quarterly
Remove category CategoryWindow Remove category
Decimal: PrefWindow Decimal:
Expand Down
Loading

0 comments on commit 180dd37

Please sign in to comment.