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

Translation #1

Open
proovit opened this issue Sep 1, 2019 · 0 comments
Open

Translation #1

proovit opened this issue Sep 1, 2019 · 0 comments

Comments

@proovit
Copy link

proovit commented Sep 1, 2019

Hi,

Translation en:

`

class Program
{
    private static bool isFirstRun = true;
    //=> Whether to create a backup
    private static bool _createBackup = true;
    //=> Project src directory
    private static string _folder = "";

    //=> Original project company name
    private static string _companyNamePlaceHolder = "";
    //=> Original project name
    private static string _projectNamePlaceHolder = "";
    //=> New project company name
    private static string _companyName = "";
    //=> New project name
    private static string _projectName = "";

    static void Main( string[] args )
    {
        if ( !isFirstRun )
        {
            if ( _folder == "" )
            {
                Console.WriteLine( "Project address cannot be empty!, please re-enter!" );
                getParam();
            }
            if ( _projectNamePlaceHolder == "" || _projectName == "" )
            {
                Console.WriteLine( "The original project name and new project name cannot be empty, please re-enter" );
                getParam();
            }
        }
        else
        {
            getParam();
        }

        Console.WriteLine( "Replace...! Replace complete auto close window" );
        SolutionRenamer app = new SolutionRenamer( _folder, _companyNamePlaceHolder, _projectNamePlaceHolder, _companyName, _projectName );
        app.CreateBackup = _createBackup; // Whether to create a backup
        app.Run();
    }


    public static void getParam()
    {
        Console.WriteLine( "Please enter the src root directory that requires the ABP project:" );
        _folder = Console.ReadLine();

        Console.WriteLine( "Do you create a backup? (true create backup; false does not create backup)" );
        _createBackup = Convert.ToBoolean( Console.ReadLine() );

        Console.WriteLine( "Please enter the company name of the original project (if not, it can be empty):" );
        _companyNamePlaceHolder = Console.ReadLine();
        Console.WriteLine( "Please enter the project name of the original project:" );
        _projectNamePlaceHolder = Console.ReadLine();

        Console.WriteLine( "Please enter the company name of the new project (if not, it can be empty):" );
        _companyName = Console.ReadLine();
        Console.WriteLine( "Please enter the project name of the new project:" );
        _projectName = Console.ReadLine();

        isFirstRun = false;
    }

`

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

No branches or pull requests

1 participant