3,751

(20 replies, posted in Translations)

Just tested Transifex:

1. Help pages are outdated.
2. Do not allow downloading of .mo files - no conversion.
3. Needs a desktop client and then use CLI to pull/push.
4. Free for Open Source projects.
5. Supports only UTF-8 for upload and download currently.
6. Bulk Review of Translations does not filter reviewed strings on clicking "download of reviewed strings" link.
7. Displayed languages not sortable (stays in default order of No. of UnTranslated strings, Language Name, Lang Code).
8. Resource wise languages listing not available.
9. The translation pairs are arranged in alphabetical order of the original strings and not in the order of the original resource po file. GlotPress maintains the order of the source resource and preserves the original resource file line numbers in the comments that precede the translations also.

3,752

(17 replies, posted in Announcements)

Then would it mean that the proxy is to be used by the Apache conf file to manage folder paths selectively to enable sbhttpd to partake of port 80 as it's publicly accessible port and for PHP to partake of the real proxy port ( say port 8080 ) in it's interaction with ScriptBASIC?

3,753

(17 replies, posted in Announcements)

@John: Thanks for the detailed info on ScriptBASIC. Just trying to find what part of C interfacing with FrontAccounting would need to justify using it.

MySQL interaction in a thread safe manner is the current way FA works with the MySQL server and that is as close as we get with C interaction with PHP and possibly no worse than ScriptBASIC. Hence any ScriptBASIC interfacing on the database side will not provide for any significant advantage especially if some form of cachiing (APC, memcached, etc) is used.

Interfacing with sensors for embedded applications where no php extension is available may be a use case for using PHP with ScriptBASIC.

If the recommended way to use ScriptBASIC is as a proxy to Apache and Apache runs on port 80 and the proxy runs on say port 8080, must the client then use port 8080 to access the application?

3,754

(16 replies, posted in Wish List)

The idea is to make a highly simplified payroll module in FA  to hold employees particulars and payslip tables with a defaults table for the ensuing month field defaults. The Country / State specifics can be used to extend this module.

@roymagura: it would be appreciated if you provide your code for the community to develop and maintain and possibly integrate into later versions.

3,756

(17 replies, posted in Announcements)

Hence ScriptBASIC in it's final use case would be to replace the entire Apache/PHP/MySQL stack with a pure ScriptBASIC compiled (or intermediate compiled) alternative and no advantage in using both together.

What is it that can be done in ScriptBASIC that cannot be just as easily done in PHP?

The reason why PHP in general and FA in particular became popular is that it is in open text form and loosely typed and easy to program for the non programmer. "Protecting / Obfuscating" code will mitigate against the userbase. Proprietary code and compiled applications can hold users to ransom. Those who wish to retain independance in the code they use will run away from it! When acceptable alternatives like ScriptBASIC arrive, there must be a compelling reason to undertake a fresh learning curve and migrate to it.

With the arrival of Triggers, Procedures and Functions in MySQL, most PHP code can be replaced by them in getting logically directed computed storage done.

As your sbhttpd is a proxy, does it still depend on the availability of a real web server like Apache?

3,757

(17 replies, posted in Announcements)

Please post some php source interacting with ScriptBASIC source code.

When doing so, he can refer my repo for many fixes to Charts (en_GB) and extensions (zen_import) and missing extensions.

Version bumps on addons with no changes in content should be avoided.

3,759

(17 replies, posted in Announcements)

Whilst FA is interpreted, executed and presented to the Web Browser (not necessarily on CGI), how would we get to use ScriptBASIC with it? Please provide an example of it's usage with PHP (non CGI).

If you model it on the en_US-new.sql then changes will be comparable.

The current Annual Balance Breakdown Report pkg in the official repo has not been updated as yet despite a lot of version bumps in the last few times ending on 2015-10-25.

There is nothing proprietary in heads of accounts and classifications - suit yourself. FA has it's own table structure anyway.

How do you propose to handle the case of differing VAT rates for multiple items in a single invoice - you will just get a consolidated value? Is it that it should be displayed dynamically (using a variable in the report to accumulate it) or to be taken from some table later?

There is atleast 1 thread in this forum that might assist you in it's backport from FA 2.4.

Attached your screenshot here as well.

You will need to activate it for the company you want it in.

3,765

(1 replies, posted in Banking and General Ledger)

You will need to activate it for the specific company you want it in.

3,766

(1 replies, posted in FA Modifications)

Have a look at the theme files in my repo.

The wiki too should be referred.

@joe: Would you like to correct the commented out line in session.inc (Post 4 in this thread) to match tm/George's construct?

3,768

(17 replies, posted in Announcements)

@John Spikowski: Found your project interesting - recalled fond '80s memories of the ZX81 BASIC on the TV and tape recorder!

In what way do you envisage your project being used with FrontAccounting?
Perhaps it has a way of interacting with MySQL databases natively in both Linux and Windows (ODBC?).
Can it do some CRONs for FA like folder monitoring and emailing or bridging between POS / CRM applications and FA?
Can it's intermediate compiled code be decompiled back?

Hence gettext is compiled natively into the PHP in your XAMPP version.

When gettext is disabled in php.ini (especially needed in windows 5.3.0 to 5.3.5), php_gettext_support takes over and the .po files get parsed into .php files with same lang name containing the translated stings array.

The php_gettext library is not needed as it's functionality is already in the includes/lang/gettext.php file.

In this array based translation, some strings will not be present if the .po file has "\n" in the index of the string and it spans several lines. One such example in the .po file would be the string:

#: admin/backups.php:195
msgid ""
"You are about to restore database from backup file.\n"
"Do you want to continue?"
msgstr ""
"Zamierzasz odtworzyæ bazê danych z pliku.\n"
" Czy chcesz kontynuowaæ?"

It will get translated in the array if it is corrected to be:

#: admin/backups.php:195
msgid "You are about to restore database from backup file.\nDo you want to continue?"
msgstr "Zamierzasz odtworzyæ bazê danych z pliku.\n Czy chcesz kontynuowaæ?"

... Or create the folder it wants / expects ..... smile

On your popular hosting server, make sure the locale for the language you need is installed in the operating system on the host box by your sysadmin first.

The Tamil language translation is only a partial one (just over 11%) since most Tamil people can understand username instead of it's more complex translated equivalent (transliterated) "Payanar Payir" - பயனர் பெயர். Anyway, this string is in the translation .mo file.

You can use it as a basis for filling in the full .po file and compiling the .mo file and using it.

Most languages supported in FA have fewer translations than Tamil in my repo. You can compute the % translation of any language by parsing the .po files obtained from the decompiled .mo files for translated strings instead of relying on the full .po files in the repo.

Wonder why it is not being included in the official repo (@joe: wink ?) !

3,772

(4 replies, posted in FA Modifications)

A list of items / categories of items we need to keep track of price history for can be set as a flag in the master_stock table, the stock category table or in a separate table that has these as keys besides others.

Each item can be purchased from more than one supplier even on the same day. A table that has purchase date and stock_id as the primary key will not suffice. Hence it will need to be on a transaction basis that can be extracted through some involved SQL gymnastics.

What happens when some of these purchases are voided (and the specific case of being partially voided - some items and some quantities - short / over supply)? The SQL used will have to account for that as well.

Furthermore, manufacturing / assembly for stock issued from inventory should be disregarded in the SQL so hammered out.

FA keeps separate tables for computed data that relies on proper updation when the primary data is affected (voiding, editing, etc). This is done for speed of operation and non dependance on past accounting period data.

A modern ideal ERP would only rely on primary data and would hence need huge resources (storage space, computing power, RAM, thread slowdown and increased spawning, etc) and complex DB engines besides having an impact on archival based removal of old entries that will never become stale.

An intermediate approach would be to have some summary computed data made at the closing of each accounting year (aka P&L postings to Balance Sheet) and stored in separate tables much like opening balances. Fiddling with these values during subsequent years would
1. wreck havoc on the reporting systems and
2. hence on the decision making that depends on it and consequently
3. make for more difficult troubleshooting issues thereafter.

The tmp folder in the FrontAccounting webroot needs to be writeable by the webserver process www-data - that is where the sessions get stored in your install. These settings are in the includes/session.inc file in line 387 commented out as it is expected to be set in the php.ini file's session.save_path setting.

Remove the .htaccess file and check - then tweak it.

Even after installing the necessary locales in Windows (before starting Apache) if you cannot get gettext to work for locales other than the default one, then use the php-gettext workaround.
1. Disable the gettext extension in the php.ini file.
2. Restart Apache.
3. upload the files in the attachment into the FA webroot - your index.php will get overwritten too. If you would like to manually patch the index.php, then make the following line the first executable one in your index.php file:

include_once("gettext.inc");

Now all standard language files in FA should display.

Ref: https://launchpad.net/php-gettext

***** This is not needed anymore - see later post. Just disable gettext extension in php.ini and php_gettext_support takes over.