rhbz1110627 zanata init

https://bugzilla.redhat.com/show_bug.cgi?id=1110627
and https://bugzilla.redhat.com/show_bug.cgi?id=1038852

Depends on https://github.com/zanata/zanata-api/pull/15 and https://github.com/zanata/zanata-server/pull/520
Well not always helpful. i.e. "GNU C compiler" will not give you "gcc" as project id. 
----- Original Message -----

> From: "David Mason" <notifications@github.com>
> To: "zanata/zanata-client" <zanata-client@noreply.github.com>
> Cc: "Patrick Huang" <pahuang@redhat.com>
> Sent: Friday, July 18, 2014 1:33:30 PM
> Subject: Re: [zanata-client] rhbz1110627 zanata init (#27)

> In
> zanata-client-commands/src/main/java/org/zanata/client/commands/init/ProjectPrompt.java:
> > +    }
> > +
> > +    @VisibleForTesting
> > +    protected void setAllAndFilteredProjects(List<Project> allProjects,
> > +            List<Project> filteredProjects) {
> > +        this.allProjects = allProjects;
> > +        this.filteredProjects = filteredProjects;
> > +    }
> > +
> > +    @VisibleForTesting
> > +    protected void createNewProject() {
> > +        interactiveable.printfln(Hint, _("create.project.help"));
> > +        interactiveable.printfln(Question, _("project.id.prompt"));
> > +        String projectId = interactiveable.expectAnyAnswer();
> > +        interactiveable.printfln(Question, _("project.name.prompt"));
> > +        String projectName = interactiveable.expectAnyAnswer();

> We could start with the project name before the id, then generate a suggested
> id based on the name by replacing any whitespace with '-' and converting to
> lowercase.

> —
> Reply to this email directly or view it on GitHub .