Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated change log #3

Merged
merged 1 commit into from
Jul 19, 2014
Merged

Updated change log #3

merged 1 commit into from
Jul 19, 2014

Conversation

mc12345678
Copy link
Owner

Updated change log for 4.0.24

Updated change log for 4.0.24
mc12345678 added a commit that referenced this pull request Jul 19, 2014
@mc12345678 mc12345678 merged commit abd6dea into mc12345678:master Jul 19, 2014
mc12345678 pushed a commit that referenced this pull request Mar 1, 2016
mesnitu referenced this pull request Feb 3, 2018
Fixes #43

Support export with language code

Export language dependent data as a field to include the language
code suffix (ie. english => `en`, german => `de`, etc...),
the language id suffix (ie. english => 1, german => 2, etc...),
or both fields. Currently the export uses the language_id which
is a number associated with the specific database as the suffix
for fields that are language based
(ie. category_description, product_description, etc...).
Use of the language code will make data transfer/matching more
universal with the existing database and other databases.

Added a define value into
`includes/modules/easypopulate_4_filelayout.php` to support
the export of language fields to have the language code
(ie. english => `en`, german => `de`, etc...)

Define established is: `EASYPOPULATE_4_CONFIG_LANGUAGE_EXPORT`
with expectation of at least three options: `id`, `code`, `all`
where `all` will export language based fields with at least
currently the language id number and the language code to
where the two fields will be adjacent to each other and are
expected to contain the same information on export.

The file contains a define if one has not been set (expected
to be set through the install/upgrade process to be in the
database) to default to the "old" method of using the language
id number as the suffix. Also if the setting is not `code` then
the "default" will be used. If a fourth option is added to the
list then this particular arrangement may need to be revisited.
(ie. what if a third language field were added to the mix, then
there would need to be an option to export just that third
field, and three additional options to export that field
combined with the other existing two and one for the existing
two to be exported alone as well, though it would simply make
more programming sense to either export a single field or all
fields and then the additional fields removed and/or import to
be controlled to allow one or the other, but shouldn't allow a
combination of language characteristics unless the goal is to
change the language assignment data.

With the changes that have been made to the export file, having
`EASYPOPULATE_4_CONFIG_LANGUAGE_EXPORT` set to any of the above
three options will result in the export file containing whatever
has been chosen/set or if it is not set to one of the three
values to export the fields using the language id as the suffix.

Added the configuration option to support "setup" and control
of the export language suffix for fields that are language dependent.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants