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

CSV Generator and Extractor #106

Merged
merged 6 commits into from
Mar 31, 2016
Merged

CSV Generator and Extractor #106

merged 6 commits into from
Mar 31, 2016

Conversation

ScreamingDev
Copy link
Contributor

CSV files are a good format for customers and non-developers.
To exchange translations with them a csv generator and extractor have been introduced.

CSV files are a good format for customers and non-developers.
To exchange translations with them a csv generator and extractor have been introduced.
@ScreamingDev
Copy link
Contributor Author

PHP 5.3 go and get your pension! :/

@mlocati
Copy link
Member

mlocati commented Mar 20, 2016

It's not always that easy to move projects to newer PHP versions, in particular the big and widely used ones

@ScreamingDev
Copy link
Contributor Author

I know and that's okay. Old projects never realy switch to newer packages. Feel free to drop some support sometimes with a new major release or so ;)
Anyway I fixed it for PHP 5.3

Hope you merge it :) I really like to use it in some projects and have a better base for customers. They know Excel so they can help translating now ;)

}

$tmpFile = tempnam(sys_get_temp_dir(), 'gettext_');
$handle = fopen($tmpFile, 'w');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use fopen('php://temp', 'w')? Seems more optimized than creating a real file in disk.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if others use that stream already so a file is a fail-safe method.
If php://temp will create a new file or stream with every fopen then this is fail-safe as well.

Anyway I change it to the "php://temp" now.

@ScreamingDev
Copy link
Contributor Author

I read the comments and changed the code. Hope to see a merge soon :)
Thanks for the notes!

@oscarotero oscarotero merged commit 789c143 into php-gettext:master Mar 31, 2016
@oscarotero
Copy link
Member

Thanks for your contribution 👍

@ScreamingDev ScreamingDev deleted the csv-generator branch March 31, 2016 17:30
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.

3 participants